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

NetworkCache::RemoteLoader Class Reference

Inheritance diagram for NetworkCache::RemoteLoader:

ICacheLoader List of all members.

Public Member Functions

 this (NetworkCache cache, IRemoteCacheLoader loader)
bool test (IPayload p)
IPayload load (char[] key, long newerThan)

Public Attributes

NetworkCache cache
IRemoteCacheLoader loader

Member Function Documentation

this NetworkCache  cache,
IRemoteCacheLoader  loader
[inline]
 

Definition at line 231 of file NetworkCache.d.

bool test IPayload  p  )  [inline]
 

Test the cache entry to see if it is still valid. A true return value indicates the entry is valid, whereas false flags the entry as stale. The latter case will cause the load() method to be invoked.

Reimplemented from ICacheLoader.

Definition at line 241 of file NetworkCache.d.

IPayload load char[]  key,
long  newerThan
[inline]
 

Load a cache entry from wherever the content is persisted. The 'time' argument represents that belonging to a stale entry, which can be used to optimize the loader operation (no need to perform a full load where there's already a newer version in an L2 cache). This 'time' value will be long.min where was no such stale entry.

Reimplemented from ICacheLoader.

Definition at line 250 of file NetworkCache.d.


Member Data Documentation

NetworkCache cache
 

Definition at line 224 of file NetworkCache.d.

IRemoteCacheLoader loader
 

Definition at line 225 of file NetworkCache.d.


The documentation for this class was generated from the following file:
Generated on Sat Apr 9 20:11:42 2005 for Mango by doxygen 1.3.6