public interface SessionOwnershipSupport
Modifier and Type | Interface and Description |
---|---|
static class |
SessionOwnershipSupport.LockResult
Result of a
lock call |
Modifier and Type | Method and Description |
---|---|
SessionOwnershipSupport.LockResult |
acquireSessionOwnership(String realId,
boolean newLock)
Attempt to take ownership of the session identified by the given id.
|
void |
relinquishSessionOwnership(String realId,
boolean remove)
Releases ownership of a session, thus making it possible for other nodes to acquire it.
|
SessionOwnershipSupport.LockResult acquireSessionOwnership(String realId, boolean newLock) throws TimeoutException, InterruptedException
realId
- the session's id, excluding any jvmRoutenewLock
- true
if the caller knows this is a new session that doesn't exist elsewhere in the cluster,
and thus acquiring ownership does not require any cluster-wide callTimeoutException
InterruptedException
void relinquishSessionOwnership(String realId, boolean remove)
realId
- the session's id, excluding any jvmRouteremove
- true
if this release is associated with a session removal, in which case the distributed cache
manager can stop tracking ownershipCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.