| Method from org.jboss.ha.hasessionstate.server.PackagedSessionImpl Detail: |
public Serializable getKey() {
return this.key;
}
|
public 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);
}
|
public void setKey(Serializable key) {
this.key = key;
}
|
public void setOwner(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(PackagedSession clone) {
this.state = (byte[])clone.getState().clone();
this.versionId = clone.getVersion ();
this.owner = clone.getOwner ();
this.lastModificationTimeInVM = System.currentTimeMillis();
}
|