Package org.glassfish.ha.store.api
Interface Storeable
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SimpleMetadata
A Storeable is an interface that must be implemented by objects that
are to be presisted in the backing store.
- Author:
- Mahesh.Kannan@Sun.Com
-
Method Summary
Modifier and TypeMethodDescriptionString[]Providers can cache thisboolean[]Providers can cache thislonglonglongGet the version of this entry.voidvoid_storeable_setLastAccessTime(long version) void_storeable_setMaxIdleTime(long version) void_storeable_setVersion(long version) void
-
Method Details
-
_storeable_getVersion
long _storeable_getVersion()Get the version of this entry. -1 means that this entry has no version- Returns:
- The version or null if this entry has no version
-
_storeable_setVersion
void _storeable_setVersion(long version) -
_storeable_getLastAccessTime
long _storeable_getLastAccessTime() -
_storeable_setLastAccessTime
void _storeable_setLastAccessTime(long version) -
_storeable_getMaxIdleTime
long _storeable_getMaxIdleTime() -
_storeable_setMaxIdleTime
void _storeable_setMaxIdleTime(long version) -
_storeable_getAttributeNames
String[] _storeable_getAttributeNames()Providers can cache this- Returns:
- an array of attribute names
-
_storeable_getDirtyStatus
boolean[] _storeable_getDirtyStatus()Providers can cache this- Returns:
- A boolean array each representing the dirty status of the attribute whose name can be found at the same index in the array returned by _getAttributeNames()
-
_storeable_writeState
- Throws:
IOException
-
_storeable_readState
- Throws:
IOException
-