wt.notify
Class NotificationListCache
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
wt.util.RMIServer
wt.cache.CacheManager
wt.notify.NotificationListCache
- All Implemented Interfaces:
- CacheServer, Remote, Serializable, Unreferenced
- public class NotificationListCache
- extends CacheManager
This class implements cache service to store notification lists.
It follows the 2-level cache paradigm. Creation and updates to
notification lists must be communicated to the cache by the Notification
Policy manager.
- See Also:
- Serialized Form
Methods inherited from class wt.cache.CacheManager |
checkAccess, getDefaultName, getDefaultSize, getEntry, isCacheHost, overflow, ping, putEntry, putEntry, reference, registerSlave, remove, remove, removeEntry, removeEntry, reset, unreferenced, update, updateEntry, updateEntry |
Methods inherited from class wt.util.RMIServer |
clone, exportObject, exportObject, exportObject, getClientSocketFactory, getPort, getServerSocketFactory, getStub, isHostInList, isLocalHost, setPort, writeReplace |
versionID
private static final String versionID
- See Also:
- Constant Field Values
VERBOSE
protected static boolean VERBOSE
NotificationListCache
public NotificationListCache()
throws RemoteException
- Contruct a new policy list cache.
get
public Object get(Object key)
- Description copied from class:
CacheManager
- Get cache entry with given key.
If not in local cache, the master cache is checked.
Supported API: true
- Overrides:
get
in class CacheManager
- Parameters:
key
- the key object
- Returns:
- the corresponding cached object or null if not in cache
put
public void put(Object key,
Object value)
- Description copied from class:
CacheManager
- Put a cache entry with given key.
The entry will also be put in the master cache, and any slave caches
will have their corresponding entry removed.
Supported API: true
- Overrides:
put
in class CacheManager
- Parameters:
key
- the key objectvalue
- the value object