public class NamedCacheObjectExpiredEventArgs extends Object
NamedCacheObjectExpirationListener
.
Methods of this class allow location and manipulation of the expired object by providing references to the relevant NamedCache
and object's CachedObjectId
.Modifier and Type | Class and Description |
---|---|
static class |
NamedCacheObjectExpiredEventArgs.NamedCacheEventCode
Enumeration containing the event codes, which can be used to determine the reason why the object was expired
and the event was fired.
|
static class |
NamedCacheObjectExpiredEventArgs.NamedCacheObjectDisposition
Enumeration used to indicate to StateServer the disposition of an expired object upon return from a StateServer event handler.
|
Modifier and Type | Method and Description |
---|---|
CachedObjectId |
getCachedObjectId()
Returns the
CachedObjectId of the expiring object. |
NamedCache |
getNamedCache()
Returns the
NamedCache instance that can be used to manipulate the expiring cached object. |
NamedCacheObjectExpiredEventArgs.NamedCacheEventCode |
getNamedCacheEventCode()
Returns the reason why the event was fired in the form of event code
NamedCacheObjectExpiredEventArgs.NamedCacheEventCode . |
void |
setObjectDisposition(NamedCacheObjectExpiredEventArgs.NamedCacheObjectDisposition disp)
Sets the object disposition(
NamedCacheObjectExpiredEventArgs.NamedCacheObjectDisposition ), determining the action to be performed. |
public NamedCache getNamedCache() throws NamedCacheException
NamedCache
instance that can be used to manipulate the expiring cached object.NamedCache
instanceNamedCacheException
- thrown if the NamedCache
has experienced an internal error.public CachedObjectId getCachedObjectId()
CachedObjectId
of the expiring object.public NamedCacheObjectExpiredEventArgs.NamedCacheEventCode getNamedCacheEventCode()
NamedCacheObjectExpiredEventArgs.NamedCacheEventCode
.public void setObjectDisposition(NamedCacheObjectExpiredEventArgs.NamedCacheObjectDisposition disp)
NamedCacheObjectExpiredEventArgs.NamedCacheObjectDisposition
), determining the action to be performed.disp
- new object dispositionCopyright (C) 2007-2014 ScaleOut Software, Inc.