Package org.shoal.ha.cache.impl.util
Class SimpleStoreableMetadata
- java.lang.Object
-
- org.shoal.ha.cache.impl.util.SimpleStoreableMetadata
-
- All Implemented Interfaces:
Serializable,org.glassfish.ha.store.api.Storeable
public class SimpleStoreableMetadata extends Object implements org.glassfish.ha.store.api.Storeable
- Author:
- Mahesh Kannan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleStoreableMetadata()SimpleStoreableMetadata(long version, long lastAccessTime, long maxIdleTime, boolean aNew, byte[] state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]_storeable_getAttributeNames()boolean[]_storeable_getDirtyStatus()long_storeable_getLastAccessTime()long_storeable_getMaxIdleTime()long_storeable_getVersion()void_storeable_readState(InputStream inputStream)void_storeable_setLastAccessTime(long l)void_storeable_setMaxIdleTime(long l)void_storeable_setVersion(long l)void_storeable_writeState(OutputStream outputStream)byte[]getState()StringtoString()
-
-
-
Method Detail
-
getState
public byte[] getState()
-
_storeable_getVersion
public long _storeable_getVersion()
- Specified by:
_storeable_getVersionin interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_setVersion
public void _storeable_setVersion(long l)
- Specified by:
_storeable_setVersionin interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_getLastAccessTime
public long _storeable_getLastAccessTime()
- Specified by:
_storeable_getLastAccessTimein interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_setLastAccessTime
public void _storeable_setLastAccessTime(long l)
- Specified by:
_storeable_setLastAccessTimein interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_getMaxIdleTime
public long _storeable_getMaxIdleTime()
- Specified by:
_storeable_getMaxIdleTimein interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_setMaxIdleTime
public void _storeable_setMaxIdleTime(long l)
- Specified by:
_storeable_setMaxIdleTimein interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_getAttributeNames
public String[] _storeable_getAttributeNames()
- Specified by:
_storeable_getAttributeNamesin interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_getDirtyStatus
public boolean[] _storeable_getDirtyStatus()
- Specified by:
_storeable_getDirtyStatusin interfaceorg.glassfish.ha.store.api.Storeable
-
_storeable_writeState
public void _storeable_writeState(OutputStream outputStream) throws IOException
- Specified by:
_storeable_writeStatein interfaceorg.glassfish.ha.store.api.Storeable- Throws:
IOException
-
_storeable_readState
public void _storeable_readState(InputStream inputStream) throws IOException
- Specified by:
_storeable_readStatein interfaceorg.glassfish.ha.store.api.Storeable- Throws:
IOException
-
-