FileDocCategorySizeDatePackage
SimpleMetadata.javaAPI DocGlassfish v2 API3438Fri May 04 22:35:28 BST 2007com.sun.appserv.ha.spi

SimpleMetadata

public class SimpleMetadata extends Metadata
A class for storing meta information

Fields Summary
private byte[]
state
private String
extraParam
Constructors Summary
public SimpleMetadata(long version, long lastAccessTime, long maxInactiveInterval, byte[] state, String extraParam)
Construct a Metadata object

param
version The version of the data. A freshly created state has a version == 0
param
lastAccessTime 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.
param
maxInactiveInterval the maximum time that this state can be idle in the store before it can be removed.
param
state The state
param
extraParam Some more data

        super(version, lastAccessTime, maxInactiveInterval);
        this.state = state;
        this.extraParam = extraParam;
    
Methods Summary
public java.lang.StringgetExtraParam()
Get the extra param associated with this metadata

return
the extra param or null

        return extraParam;
    
public byte[]getState()
Get the state of the object that is stored.

return
the state or null

        return state;