Metadatapublic class Metadata extends Object A class for storing meta information |
Fields Summary |
---|
private long | version | private long | lastAccessTime | private long | maxInactiveInterval |
Constructors Summary |
---|
public Metadata(long version, long lastAccesstime, long maxInactiveInterval)Construct a Metadata object
this.version = version;
this.lastAccessTime = lastAccesstime;
this.maxInactiveInterval = maxInactiveInterval;
|
Methods Summary |
---|
public long | getLastAccessTime()Get 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.
return lastAccessTime;
| public long | getMaxInactiveInterval()Get the maximum time that this state can be idle in the store before it
can be removed.
return this.maxInactiveInterval;
| public long | getVersion()Get the verion of the state. A freshly created state has a version == 0
return version;
|
|