Public Member Functions | |
this (Cluster cluster, uint defaultSize) | |
ChannelCache | addCache (char[] channel, uint size) |
void | put (char[] channel, char[] element, ClusterContent content) |
ClusterContent | extract (char[] channel, char[] element) |
ClusterContent | get (char[] channel, char[] element) |
bool | lockWhereInvalid (char[] channel, char[] element, long time) |
void | unlock (char[] channel, char[] element) |
Private Member Functions | |
final ChannelCache | lookup (char[] channel) |
Private Attributes | |
Cluster | cluster |
HashMap | cacheSet |
uint | defaultSize |
Definition at line 65 of file ClusterCache.d.
|
Definition at line 75 of file ClusterCache.d. References cluster, defaultSize, and HashMap. |
|
Definition at line 86 of file ClusterCache.d. References cacheSet, and HashMap::get(). Referenced by extract(), get(), lockWhereInvalid(), put(), and unlock(). |
|
Definition at line 95 of file ClusterCache.d. References cacheSet, cluster, and HashMap::put(). Referenced by lockWhereInvalid(), and put(). |
|
Definition at line 110 of file ClusterCache.d. References addCache(), defaultSize, lookup(), and ChannelCache::put(). Referenced by CacheServer::LoaderThread::load(), and ClusterThread::run(). |
|
Definition at line 124 of file ClusterCache.d. References ChannelCache::extract(), and lookup(). Referenced by ClusterThread::run(). |
|
Definition at line 138 of file ClusterCache.d. References ChannelCache::get(), and lookup(). Referenced by ClusterThread::run(). |
|
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 156 of file ClusterCache.d. References addCache(), defaultSize, ChannelCache::lockWhereInvalid(), and lookup(). Referenced by CacheServer::LoaderThread::load(). |
|
Definition at line 171 of file ClusterCache.d. References lookup(), and ChannelCache::unlock(). Referenced by CacheServer::LoaderThread::load(). |
|
Definition at line 67 of file ClusterCache.d. Referenced by addCache(), and this(). |
|
Definition at line 68 of file ClusterCache.d. Referenced by addCache(), and lookup(). |
|
Definition at line 69 of file ClusterCache.d. Referenced by lockWhereInvalid(), put(), and this(). |