Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

ChannelCache Class Reference

List of all members.

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

Member Function Documentation

this Cluster  cluster,
char[]  channel,
int  cacheSize
[inline]
 

Definition at line 315 of file ClusterCache.d.

References cache, CacheInvalidatee, HashMap, locks, QueuedCache, and ILogger::trace().

void put char[]  key,
ClusterContent  content
[inline]
 

Definition at line 334 of file ClusterCache.d.

References assert().

Referenced by ClusterCache::put().

ClusterContent extract char[]  key  )  [inline]
 

Definition at line 348 of file ClusterCache.d.

References cache, QueuedCache::extract(), and ClusterEntry::getData().

Referenced by ClusterCache::extract().

ClusterContent get char[]  key  )  [inline]
 

Definition at line 364 of file ClusterCache.d.

References cache, QueuedCache::get(), and ClusterEntry::getData().

Referenced by ClusterCache::get().

bool lockWhereInvalid char[]  key,
long  time
[inline]
 

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 384 of file ClusterCache.d.

References cache, HashMap::get(), QueuedCache::get(), Payload::getTime(), locks, and HashMap::put().

Referenced by ClusterCache::lockWhereInvalid().

void unlock char[]  key  )  [inline]
 

Definition at line 406 of file ClusterCache.d.

References locks, and HashMap::remove().

Referenced by ClusterCache::unlock().


Member Data Documentation

HashMap locks [private]
 

Definition at line 308 of file ClusterCache.d.

Referenced by lockWhereInvalid(), this(), and unlock().

QueuedCache cache [private]
 

Definition at line 309 of file ClusterCache.d.

Referenced by extract(), get(), lockWhereInvalid(), and this().


The documentation for this class was generated from the following file:
Generated on Fri May 27 18:11:59 2005 for Mango by  doxygen 1.4.0