public class ClusteredSessionManagementStatus extends Object
Constructor and Description |
---|
ClusteredSessionManagementStatus(String realId,
boolean locallyUsed,
Boolean locallyActive,
Boolean locallyOwned)
Create a new ClusteredSessionManagementStatus.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getLocallyActive()
Gets whether an HttpSession object for the given session has been returned from the container to the application on this
node AND this node is the last one to handle a request for the session.
|
Boolean |
getLocallyOwned()
Gets whether this node considers itself to be the "owner" of the session; i.e.
|
String |
getRealId()
Gets the id of the session, excluding any jvmRoute that may have been appended if JK is used.
|
boolean |
isLocallyUsed()
Gets whether an HttpSession object for the given session has been returned from the container to the application on this node.
|
public ClusteredSessionManagementStatus(String realId, boolean locallyUsed, Boolean locallyActive, Boolean locallyOwned)
realId
- the id of the session, excluding any jvmRoute.locallyUsed
- whether the session has been provided to the application on this node.locallyActive
- whether this node is the most recent one to handle a request for the session; null
if unknownlocallyOwned
- whether this node is the "owner" of the session, null
if unknown or the concept of ownership is unsupported.public String getRealId()
null
.public boolean isLocallyUsed()
true
if the session has been used locally, false
if not.public Boolean getLocallyActive()
true
if the above conditions are true and the container is sure of this, false
if they
are not true and the container knows this, or null
if the container is unsure if this node is the
last one to handle a request for the session.ClusteredSessionNotificationCapability.isLocallyActiveAware()
public Boolean getLocallyOwned()
true
if the container knows it is the owner, false
if it knows it is not the owner, or
null
if the container is unsure about ownership or does not recognize the concept of ownership.ClusteredSessionNotificationCapability.isLocallyOwnedAware()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.