|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.ha.store.util.SimpleMetadata
public class SimpleMetadata
| Constructor Summary | |
|---|---|
SimpleMetadata()
|
|
SimpleMetadata(long version,
long lastAccesstime,
long maxInactiveInterval,
byte[] state)
Construct a SimpleMetadata object |
|
| Method Summary | |
|---|---|
String[] |
_storeable_getAttributeNames()
Providers can cache this |
boolean[] |
_storeable_getDirtyStatus()
Providers can cache this |
long |
_storeable_getLastAccessTime()
|
long |
_storeable_getMaxIdleTime()
|
long |
_storeable_getVersion()
Get the version of this entry. |
void |
_storeable_readState(InputStream is)
|
void |
_storeable_setLastAccessTime(long val)
|
void |
_storeable_setMaxIdleTime(long val)
|
void |
_storeable_setVersion(long val)
|
void |
_storeable_writeState(OutputStream os)
|
long |
getLastAccessTime()
Get the last access time of the state. |
long |
getMaxInactiveInterval()
Get the maximum time that this state can be idle in the store before it can be removed. |
byte[] |
getState()
|
long |
getVersion()
Get the verion of the state. |
void |
setLastAccessTime(long lastAccessTime)
|
void |
setMaxInactiveInterval(long maxInactiveInterval)
|
void |
setState(byte[] state)
|
void |
setVersion(long version)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleMetadata()
public SimpleMetadata(long version,
long lastAccesstime,
long maxInactiveInterval,
byte[] state)
version - The version of the data. A freshly created state has a version == 0lastAccesstime - the last access time of the state. This must be used in
conjunction with getMaxInactiveInterval to determine if the
state is idle enough to be removed.maxInactiveInterval - the maximum time that this state can be idle in the store
before it can be removed.| Method Detail |
|---|
public long getVersion()
public void setVersion(long version)
public long getLastAccessTime()
public void setLastAccessTime(long lastAccessTime)
public long getMaxInactiveInterval()
public void setMaxInactiveInterval(long maxInactiveInterval)
public byte[] getState()
public void setState(byte[] state)
public String toString()
toString in class Objectpublic long _storeable_getVersion()
Storeable
_storeable_getVersion in interface Storeablepublic void _storeable_setVersion(long val)
_storeable_setVersion in interface Storeablepublic long _storeable_getLastAccessTime()
_storeable_getLastAccessTime in interface Storeablepublic void _storeable_setLastAccessTime(long val)
_storeable_setLastAccessTime in interface Storeablepublic long _storeable_getMaxIdleTime()
_storeable_getMaxIdleTime in interface Storeablepublic void _storeable_setMaxIdleTime(long val)
_storeable_setMaxIdleTime in interface Storeablepublic String[] _storeable_getAttributeNames()
Storeable
_storeable_getAttributeNames in interface Storeablepublic boolean[] _storeable_getDirtyStatus()
Storeable
_storeable_getDirtyStatus in interface Storeable
public void _storeable_writeState(OutputStream os)
throws IOException
_storeable_writeState in interface StoreableIOException
public void _storeable_readState(InputStream is)
throws IOException
_storeable_readState in interface StoreableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||