public class ObjectExpiredEventArgs extends StateServerEventArgs
The argument to a ObjectExpirationListener.objectExpired(ObjectExpiredEventArgs)
callback that identifies an object in StateServer that has expired.
setObjectDisposition(com.scaleoutsoftware.soss.client.ObjectDisposition).
The default disposition is ObjectDisposition.Remove.| Modifier and Type | Method and Description |
|---|---|
ObjectDisposition |
getObjectDisposition()
Return the current disposition for this object.
|
void |
setObjectDisposition(ObjectDisposition disposition)
Set the object's disposition to
disposition. |
getAppId, getDataAccessor, getEventCode, getExtendedProperties, getKeypublic ObjectDisposition getObjectDisposition()
public void setObjectDisposition(ObjectDisposition disposition)
Set the object's disposition to disposition.
ObjectExpirationListeners are registered, each listener will
receive a callback with the same ObjectExpiredEventArgs instance. After all
listeners have received callbacks, getObjectDisposition() is examined and
determines the actual disposition for the object. If need be, multiple cooperating
listeners can use StateServerEventArgs.getExtendedProperties() to communicate status between
themselves.disposition - an ObjectDisposition value indicating how StateServer should process the
object expiration.