org.jboss.ha.hasessionstate.interfaces
Interface PackagedSession

All Superinterfaces:
Serializable
All Known Implementing Classes:
PackagedSessionImpl

public interface PackagedSession
extends Serializable

Information about a session that is shared by nodes in the same subpartition

Version:
$Revision: 81001 $

Revisions:

Author:
sacha.labourey@cogito-info.ch
See Also:
HASessionState, PackagedSessionImpl

Field Summary
static long serialVersionUID
          The serialVersionUID
 
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)
           
 

Field Detail

serialVersionUID

static final long serialVersionUID
The serialVersionUID

Since:
1.2
See Also:
Constant Field Values
Method Detail

getState

byte[] getState()

setState

boolean setState(byte[] state)

isStateIdentical

boolean isStateIdentical(byte[] state)

update

void update(PackagedSession clone)

getOwner

String getOwner()

setOwner

void setOwner(String owner)

getVersion

long getVersion()

getKey

Serializable getKey()

unmodifiedExistenceInVM

long unmodifiedExistenceInVM()

getLock

Lock getLock()
Returns the lock used to prevent concurrent calls on this session.

Returns:
a mutex


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