public final class CompositeMetadata extends Object implements org.glassfish.ha.store.api.Storeable
Constructor and Description |
---|
CompositeMetadata()
Every Storeable must have a public no arg constructor
|
CompositeMetadata(long version,
long lastAccessTime,
long maxInactiveInterval,
Collection<SessionAttributeMetadata> entries,
byte[] state,
String stringExtraParam)
Construct a CompositeMetadata object
|
Modifier and Type | Method and Description |
---|---|
String[] |
_storeable_getAttributeNames() |
boolean[] |
_storeable_getDirtyStatus() |
long |
_storeable_getLastAccessTime() |
long |
_storeable_getMaxIdleTime() |
long |
_storeable_getVersion() |
void |
_storeable_readState(InputStream is) |
void |
_storeable_setLastAccessTime(long lastAccessTime) |
void |
_storeable_setMaxIdleTime(long maxInactiveInterval) |
void |
_storeable_setVersion(long version) |
void |
_storeable_writeState(OutputStream os) |
Collection<SessionAttributeMetadata> |
getEntries()
Returns a collection of Metadata (or its subclass).
|
byte[] |
getState() |
String |
getStringExtraParam() |
long |
getVersion() |
void |
setState(byte[] state) |
void |
setStringExtraParam(String stringExtraParam) |
String |
toString() |
public CompositeMetadata()
public CompositeMetadata(long version, long lastAccessTime, long maxInactiveInterval, Collection<SessionAttributeMetadata> entries, byte[] state, String stringExtraParam)
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.entries
- the SessionAttributeMetadata that are part of this Metadatapublic byte[] getState()
public void setState(byte[] state)
public String getStringExtraParam()
public void setStringExtraParam(String stringExtraParam)
public Collection<SessionAttributeMetadata> getEntries()
public long getVersion()
public long _storeable_getVersion()
_storeable_getVersion
in interface org.glassfish.ha.store.api.Storeable
public void _storeable_setVersion(long version)
_storeable_setVersion
in interface org.glassfish.ha.store.api.Storeable
public long _storeable_getLastAccessTime()
_storeable_getLastAccessTime
in interface org.glassfish.ha.store.api.Storeable
public void _storeable_setLastAccessTime(long lastAccessTime)
_storeable_setLastAccessTime
in interface org.glassfish.ha.store.api.Storeable
public long _storeable_getMaxIdleTime()
_storeable_getMaxIdleTime
in interface org.glassfish.ha.store.api.Storeable
public void _storeable_setMaxIdleTime(long maxInactiveInterval)
_storeable_setMaxIdleTime
in interface org.glassfish.ha.store.api.Storeable
public String[] _storeable_getAttributeNames()
_storeable_getAttributeNames
in interface org.glassfish.ha.store.api.Storeable
public boolean[] _storeable_getDirtyStatus()
_storeable_getDirtyStatus
in interface org.glassfish.ha.store.api.Storeable
public void _storeable_writeState(OutputStream os) throws IOException
_storeable_writeState
in interface org.glassfish.ha.store.api.Storeable
IOException
public void _storeable_readState(InputStream is) throws IOException
_storeable_readState
in interface org.glassfish.ha.store.api.Storeable
IOException
Copyright © 2019. All rights reserved.