Java Doc for Cache.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » memory » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.memory.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.memory.api.Cache

All known Subclasses:   org.sakaiproject.memory.impl.MemCache,
Cache
public interface Cache extends Cacher(Code)

A Cache holds objects with keys with a limited lifespan.

When the object expires, the cache may call upon a CacheRefresher to update the key's value. The update is done in a separate thread.





Method Summary
 voidattachDerivedCache(DerivedCache cache)
     Attach this DerivedCache to the cache.
 voidclear()
     Clear all entries.
 booleancontainsKey(Object key)
     Test for a non expired entry in the cache.
Parameters:
  key - The cache key.
 booleancontainsKeyExpiredOrNot(Object key)
     Test for an entry in the cache - expired or not.
Parameters:
  key - The cache key.
 voiddestroy()
     Clear all entries and shudown the cache.
 voiddisable()
     Disable the cache.
 booleandisabled()
    
 voidenable()
     Enable the cache.
 voidexpire(Object key)
     Expire this object.
 Objectget(Object key)
     Get the non expired entry, or null if not there (or expired)
Parameters:
  key - The cache key.
 ListgetAll()
     Get all the non-expired non-null entries.
 ListgetAll(String path)
     Get all the non-expired non-null entries that are in the specified reference path.
 ObjectgetExpiredOrNot(Object key)
     Get the entry, or null if not there (expired entries are returned, too).
Parameters:
  key - The cache key.
 ListgetIds()
     Get all the keys, modified from resource references to ids by removing the resource prefix.
 ListgetKeys()
    
 voidholdEvents()
     Set the cache to hold events for later processing to assure an atomic "complete" load.
 booleanisComplete()
    
 booleanisComplete(String path)
     Are we complete for one level of the reference hierarchy?
Parameters:
  path - The reference to the completion level.
 voidprocessEvents()
     Restore normal event processing in the cache, and process any held events now.
 voidput(Object key, Object payload, int duration)
    
 voidput(Object key, Object payload)
     Cache an object - don't automatically exipire it.
 voidremove(Object key)
     Remove this entry from the cache.
 voidsetComplete()
     Set the cache to be complete, containing all possible entries.
 voidsetComplete(String path)
     Set the cache to be complete for one level of the reference hierarchy.



Method Detail
attachDerivedCache
void attachDerivedCache(DerivedCache cache)(Code)
Attach this DerivedCache to the cache. The DerivedCache is then notified of the cache contents changing events.
Parameters:
  cache - The DerivedCache to attach.



clear
void clear()(Code)
Clear all entries.



containsKey
boolean containsKey(Object key)(Code)
Test for a non expired entry in the cache.
Parameters:
  key - The cache key. true if the key maps to a non-expired cache entry, false if not.



containsKeyExpiredOrNot
boolean containsKeyExpiredOrNot(Object key)(Code)
Test for an entry in the cache - expired or not.
Parameters:
  key - The cache key. true if the key maps to a cache entry, false if not.



destroy
void destroy()(Code)
Clear all entries and shudown the cache. Don't use after this call.



disable
void disable()(Code)
Disable the cache.



disabled
boolean disabled()(Code)
Is the cache disabled? true if the cache is disabled, false if it is enabled.



enable
void enable()(Code)
Enable the cache.



expire
void expire(Object key)(Code)
Expire this object.
Parameters:
  key - The cache key.



get
Object get(Object key)(Code)
Get the non expired entry, or null if not there (or expired)
Parameters:
  key - The cache key. The payload, or null if the payload is null, the key is not found, or the entry has expired (Note: use containsKey() to remove this ambiguity).



getAll
List getAll()(Code)
Get all the non-expired non-null entries. all the non-expired non-null entries, or an empty list if none.



getAll
List getAll(String path)(Code)
Get all the non-expired non-null entries that are in the specified reference path. Note: only works with String keys.
Parameters:
  path - The reference path. all the non-expired non-null entries, or an empty list if none.



getExpiredOrNot
Object getExpiredOrNot(Object key)(Code)
Get the entry, or null if not there (expired entries are returned, too).
Parameters:
  key - The cache key. The payload, or null if the payload is null, the key is not found. (Note: use containsKey() to remove this ambiguity).



getIds
List getIds()(Code)
Get all the keys, modified from resource references to ids by removing the resource prefix. Note: only works with String keys. The List of keys converted from references to ids (String).



getKeys
List getKeys()(Code)
Get all the keys The List of key values (Object).



holdEvents
void holdEvents()(Code)
Set the cache to hold events for later processing to assure an atomic "complete" load.



isComplete
boolean isComplete()(Code)
Are we complete? true if we have all the possible entries cached, false if not.



isComplete
boolean isComplete(String path)(Code)
Are we complete for one level of the reference hierarchy?
Parameters:
  path - The reference to the completion level. true if we have all the possible entries cached, false if not.



processEvents
void processEvents()(Code)
Restore normal event processing in the cache, and process any held events now.



put
void put(Object key, Object payload, int duration)(Code)
Cache an object
Parameters:
  key - The key with which to find the object.
Parameters:
  payload - The object to cache.
Parameters:
  duration - The time to cache the object (seconds).



put
void put(Object key, Object payload)(Code)
Cache an object - don't automatically exipire it.
Parameters:
  key - The key with which to find the object.
Parameters:
  payload - The object to cache.
Parameters:
  duration - The time to cache the object (seconds).



remove
void remove(Object key)(Code)
Remove this entry from the cache.
Parameters:
  key - The cache key.



setComplete
void setComplete()(Code)
Set the cache to be complete, containing all possible entries.



setComplete
void setComplete(String path)(Code)
Set the cache to be complete for one level of the reference hierarchy.
Parameters:
  path - The reference to the completion level.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.