public class SimpleMetadata extends Object implements Storeable
| Constructor and Description |
|---|
SimpleMetadata() |
SimpleMetadata(long version,
long lastAccesstime,
long maxInactiveInterval,
byte[] state)
Construct a SimpleMetadata object
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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.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 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 Storeablepublic void _storeable_writeState(OutputStream os) throws IOException
_storeable_writeState in interface StoreableIOExceptionpublic void _storeable_readState(InputStream is) throws IOException
_storeable_readState in interface StoreableIOExceptionCopyright © 2017-2019 Eclipse Foundation. All Rights Reserved.