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 62 of file ClusterCache.d.
|
Definition at line 72 of file ClusterCache.d. References defaultSize, and HashMap. |
|
Definition at line 83 of file ClusterCache.d. References cacheSet, and HashMap::get(). Referenced by extract(), get(), lockWhereInvalid(), put(), and unlock(). |
|
Definition at line 92 of file ClusterCache.d. References cacheSet, and HashMap::put(). Referenced by lockWhereInvalid(), and put(). |
|
Definition at line 107 of file ClusterCache.d. References addCache(), ClusterContent, defaultSize, lookup(), and ChannelCache::put(). Referenced by CacheServer::LoaderThread::load(), and ClusterThread::run(). |
|
Definition at line 121 of file ClusterCache.d. References ClusterContent, ChannelCache::extract(), and lookup(). Referenced by ClusterThread::run(). |
|
Definition at line 135 of file ClusterCache.d. References ClusterContent, 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 153 of file ClusterCache.d. References addCache(), defaultSize, ChannelCache::lockWhereInvalid(), lookup(), and time. Referenced by CacheServer::LoaderThread::load(). |
|
Definition at line 168 of file ClusterCache.d. References lookup(), and ChannelCache::unlock(). Referenced by CacheServer::LoaderThread::load(). |
|
Definition at line 64 of file ClusterCache.d. |
|
Definition at line 65 of file ClusterCache.d. Referenced by addCache(), and lookup(). |
|
Definition at line 66 of file ClusterCache.d. Referenced by lockWhereInvalid(), put(), and this(). |