public class SALSessions extends Object
Modifier and Type | Method and Description |
---|---|
void |
clearSessions()
Clear all the expired sessions
|
List<Endpoint> |
getChildEndpoints(SessionInformation information)
Returns endpoint sequence related to the given session
|
static SALSessions |
getInstance() |
SessionInformation |
getSession(String sessionID)
return the endpoint for the given session.
|
void |
initialize(boolean isClusteringEnable,
org.apache.axis2.context.ConfigurationContext cc)
Initialize SALSessions instance
|
boolean |
isInitialized() |
void |
registerChildren(Endpoint endpoint,
List<Endpoint> endpoints)
This method only use in a clustered environment.
|
void |
removeSession(String sessionId)
Removes the endpoint for the given session.
|
void |
reset() |
void |
updateSession(MessageContext synCtx,
String sessionID)
Update or establish a session
|
public static SALSessions getInstance()
public void initialize(boolean isClusteringEnable, org.apache.axis2.context.ConfigurationContext cc)
isClusteringEnable
- is this a clustered environmentcc
- Axis config contextpublic void registerChildren(Endpoint endpoint, List<Endpoint> endpoints)
endpoint
- Root endpoint nameendpoints
- childrenpublic void updateSession(MessageContext synCtx, String sessionID)
synCtx
- Synapse MessageContextsessionID
- session idpublic SessionInformation getSession(String sessionID)
sessionID
- The session identifierpublic List<Endpoint> getChildEndpoints(SessionInformation information)
information
- Session informationpublic void removeSession(String sessionId)
sessionId
- The session identifierpublic void clearSessions()
public boolean isInitialized()
public void reset()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.