org.shoal.ha.cache.impl.util
Class SimpleStoreableMetadata

java.lang.Object
  extended by org.shoal.ha.cache.impl.util.SimpleStoreableMetadata
All Implemented Interfaces:
java.io.Serializable, org.glassfish.ha.store.api.Storeable

public class SimpleStoreableMetadata
extends java.lang.Object
implements org.glassfish.ha.store.api.Storeable

Author:
Mahesh Kannan
See Also:
Serialized Form

Constructor Summary
SimpleStoreableMetadata()
           
SimpleStoreableMetadata(long version, long lastAccessTime, long maxIdleTime, boolean aNew, byte[] state)
           
 
Method Summary
 java.lang.String[] _storeable_getAttributeNames()
           
 boolean[] _storeable_getDirtyStatus()
           
 long _storeable_getLastAccessTime()
           
 long _storeable_getMaxIdleTime()
           
 long _storeable_getVersion()
           
 void _storeable_readState(java.io.InputStream inputStream)
           
 void _storeable_setLastAccessTime(long l)
           
 void _storeable_setMaxIdleTime(long l)
           
 void _storeable_setVersion(long l)
           
 void _storeable_writeState(java.io.OutputStream outputStream)
           
 byte[] getState()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleStoreableMetadata

public SimpleStoreableMetadata()

SimpleStoreableMetadata

public SimpleStoreableMetadata(long version,
                               long lastAccessTime,
                               long maxIdleTime,
                               boolean aNew,
                               byte[] state)
Method Detail

getState

public byte[] getState()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

_storeable_getVersion

public long _storeable_getVersion()
Specified by:
_storeable_getVersion in interface org.glassfish.ha.store.api.Storeable

_storeable_setVersion

public void _storeable_setVersion(long l)
Specified by:
_storeable_setVersion in interface org.glassfish.ha.store.api.Storeable

_storeable_getLastAccessTime

public long _storeable_getLastAccessTime()
Specified by:
_storeable_getLastAccessTime in interface org.glassfish.ha.store.api.Storeable

_storeable_setLastAccessTime

public void _storeable_setLastAccessTime(long l)
Specified by:
_storeable_setLastAccessTime in interface org.glassfish.ha.store.api.Storeable

_storeable_getMaxIdleTime

public long _storeable_getMaxIdleTime()
Specified by:
_storeable_getMaxIdleTime in interface org.glassfish.ha.store.api.Storeable

_storeable_setMaxIdleTime

public void _storeable_setMaxIdleTime(long l)
Specified by:
_storeable_setMaxIdleTime in interface org.glassfish.ha.store.api.Storeable

_storeable_getAttributeNames

public java.lang.String[] _storeable_getAttributeNames()
Specified by:
_storeable_getAttributeNames in interface org.glassfish.ha.store.api.Storeable

_storeable_getDirtyStatus

public boolean[] _storeable_getDirtyStatus()
Specified by:
_storeable_getDirtyStatus in interface org.glassfish.ha.store.api.Storeable

_storeable_writeState

public void _storeable_writeState(java.io.OutputStream outputStream)
                           throws java.io.IOException
Specified by:
_storeable_writeState in interface org.glassfish.ha.store.api.Storeable
Throws:
java.io.IOException

_storeable_readState

public void _storeable_readState(java.io.InputStream inputStream)
                          throws java.io.IOException
Specified by:
_storeable_readState in interface org.glassfish.ha.store.api.Storeable
Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.