Public Member Functions | |
this (Cluster cluster, char[] channel, int cacheSize) | |
void | put (char[] key, ClusterContent content) |
ClusterContent | extract (char[] key) |
ClusterContent | get (char[] key) |
bool | lockWhereInvalid (char[] key, long time) |
void | unlock (char[] key) |
Private Attributes | |
HashMap | locks |
QueuedCache | cache |
|
Definition at line 310 of file ClusterCache.d. References CacheInvalidatee, HashMap, locks, and QueuedCache. |
|
Definition at line 329 of file ClusterCache.d. References assert(), and ClusterContent. Referenced by ClusterCache::put(). |
|
Definition at line 343 of file ClusterCache.d. References ClusterContent, QueuedCache::extract(), and ClusterEntry::getData(). Referenced by ClusterCache::extract(). |
|
Definition at line 359 of file ClusterCache.d. References ClusterContent, QueuedCache::get(), and ClusterEntry::getData(). Referenced by ClusterCache::get(). |
|
Add a cache lock where the entry is invalid or unlocked. Returns true if locked by this call, false otherwise. Note that this will return false if the entry is already locked. Definition at line 379 of file ClusterCache.d. References HashMap::get(), QueuedCache::get(), Payload::getTime(), locks, HashMap::put(), and time. Referenced by ClusterCache::lockWhereInvalid(). |
|
Definition at line 401 of file ClusterCache.d. References locks, and HashMap::remove(). Referenced by ClusterCache::unlock(). |
|
Definition at line 303 of file ClusterCache.d. Referenced by lockWhereInvalid(), this(), and unlock(). |
|
Definition at line 304 of file ClusterCache.d. |