|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dispatcher
Defines the behavior of session dispatchers. There can be two dispatcher types. Server initiated session dispatchers and client initiated session dispatchers. In the former one, server generates the session ID and sends it to the client in the first RESPONSE. In the later case, client should generate the session ID and send it to the server in the first REQUEST. A dispatcher object will be created for each session affinity load balance endpoint.
Method Summary | |
---|---|
List<Endpoint> |
getEndpoints(SessionInformation sessionInformation)
Returns the endpoint sequence associated with current session with out root |
SessionInformation |
getSession(MessageContext synCtx)
Dispatcher should check the session id pattern in the synapseMessageContext and return the matching endpoint for that session id, if available. |
boolean |
isServerInitiatedSession()
Determine whether the session supported by the implementing dispatcher is initiated by the server (e.g. |
void |
removeSessionID(MessageContext syCtx)
Remove the session Id - To clear out session information from current message |
void |
unbind(MessageContext synCtx)
Removes the session belonging to the given message context. |
void |
updateSession(MessageContext synCtx)
Updates the session maps. |
Method Detail |
---|
SessionInformation getSession(MessageContext synCtx)
synCtx
- client -> esb message context.
void updateSession(MessageContext synCtx)
synCtx
- SynapseMessageContextvoid unbind(MessageContext synCtx)
synCtx
- MessageContext containing an session ID.boolean isServerInitiatedSession()
List<Endpoint> getEndpoints(SessionInformation sessionInformation)
sessionInformation
- Current Session information
void removeSessionID(MessageContext syCtx)
syCtx
- MessageContext containing an session ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |