org.jboss.ha.hasessionstate.server
Class PackagedSessionImpl

java.lang.Object
  extended by org.jboss.ha.hasessionstate.server.PackagedSessionImpl
All Implemented Interfaces:
Serializable, PackagedSession

public class PackagedSessionImpl
extends Object
implements PackagedSession

Default implementation of PackagedSession

Version:
$Revision: 81001 $
Author:
sacha.labourey@cogito-info.ch
See Also:
PackagedSession, HASessionStateImpl, Serialized Form

Constructor Summary
PackagedSessionImpl(Serializable key, byte[] state, String owner)
           
 
Method Summary
 Serializable getKey()
           
 Lock getLock()
          Returns the lock used to prevent concurrent calls on this session.
 String getOwner()
           
 byte[] getState()
           
 long getVersion()
           
 boolean isStateIdentical(byte[] state)
           
 void setOwner(String owner)
           
 boolean setState(byte[] state)
           
 long unmodifiedExistenceInVM()
           
 void update(PackagedSession clone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackagedSessionImpl

public PackagedSessionImpl(Serializable key,
                           byte[] state,
                           String owner)
Method Detail

getState

public byte[] getState()
Specified by:
getState in interface PackagedSession

setState

public boolean setState(byte[] state)
Specified by:
setState in interface PackagedSession

isStateIdentical

public boolean isStateIdentical(byte[] state)
Specified by:
isStateIdentical in interface PackagedSession

update

public void update(PackagedSession clone)
Specified by:
update in interface PackagedSession

getOwner

public String getOwner()
Specified by:
getOwner in interface PackagedSession

setOwner

public void setOwner(String owner)
Specified by:
setOwner in interface PackagedSession

getVersion

public long getVersion()
Specified by:
getVersion in interface PackagedSession

getKey

public Serializable getKey()
Specified by:
getKey in interface PackagedSession

unmodifiedExistenceInVM

public long unmodifiedExistenceInVM()
Specified by:
unmodifiedExistenceInVM in interface PackagedSession

getLock

public Lock getLock()
Description copied from interface: PackagedSession
Returns the lock used to prevent concurrent calls on this session.

Specified by:
getLock in interface PackagedSession
Returns:
a mutex
See Also:
PackagedSession.getLock()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.