Methods Summary |
---|
public java.io.Serializable | getKey() return this.key;
|
public java.lang.String | getOwner() return this.owner;
|
public byte[] | getState()
return this.state;
|
public long | getVersion() return this.versionId;
|
public boolean | isStateIdentical(byte[] state)
return java.util.Arrays.equals (state, this.state);
|
private void | readObject(java.io.ObjectInputStream in)
in.defaultReadObject();
this.lastModificationTimeInVM = System.currentTimeMillis();
|
public void | setKey(java.io.Serializable key) this.key = key;
|
public void | setOwner(java.lang.String owner) this.owner = owner;
|
public boolean | setState(byte[] state)
this.lastModificationTimeInVM = System.currentTimeMillis ();
if (isStateIdentical (state))
return true;
else
{
this.state = state;
this.versionId++;
return false;
}
|
public long | unmodifiedExistenceInVM()
return this.lastModificationTimeInVM;
|
public void | update(org.jboss.ha.hasessionstate.interfaces.PackagedSession clone)
this.state = (byte[])clone.getState().clone();
this.versionId = clone.getVersion ();
this.owner = clone.getOwner ();
this.lastModificationTimeInVM = System.currentTimeMillis();
|