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 Storeable
public void _storeable_setVersion(long val)
_storeable_setVersion
in interface Storeable
public long _storeable_getLastAccessTime()
_storeable_getLastAccessTime
in interface Storeable
public void _storeable_setLastAccessTime(long val)
_storeable_setLastAccessTime
in interface Storeable
public long _storeable_getMaxIdleTime()
_storeable_getMaxIdleTime
in interface Storeable
public void _storeable_setMaxIdleTime(long val)
_storeable_setMaxIdleTime
in interface Storeable
public String[] _storeable_getAttributeNames()
Storeable
_storeable_getAttributeNames
in interface Storeable
public boolean[] _storeable_getDirtyStatus()
Storeable
_storeable_getDirtyStatus
in interface Storeable
public void _storeable_writeState(OutputStream os) throws IOException
_storeable_writeState
in interface Storeable
IOException
public void _storeable_readState(InputStream is) throws IOException
_storeable_readState
in interface Storeable
IOException
Copyright © 2015 Oracle Corporation. All rights reserved.