public class SALoadbalanceEndpoint extends LoadbalanceEndpoint
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, log, trace
Constructor and Description |
---|
SALoadbalanceEndpoint() |
Modifier and Type | Method and Description |
---|---|
Dispatcher |
getDispatcher() |
long |
getSessionTimeout() |
void |
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the
implemented parts of the configuration.
|
void |
onChildEndpointFail(Endpoint endpoint,
MessageContext synCtx)
It is logically incorrect to failover a session affinity endpoint after the session has started.
|
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.
|
void |
setDispatcher(Dispatcher dispatcher) |
void |
setSessionTimeout(long sessionTimeout) |
destroy, getAlgorithm, getMembers, getNextChild, isFailover, readyToSend, setAlgorithm, setFailover, setMembers, startApplicationMembershipTimer
addProperties, addProperty, evaluateProperties, getChildren, getContext, getDefinition, getDescription, getErrorHandler, getFileName, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetryDisabled, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAnonymous, setChildren, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setName, setParentEndpoint, toString, traceOrDebug
getStackTrace, handleFault, handleFault
public void init(SynapseEnvironment synapseEnvironment)
ManagedLifecycle
init
in interface ManagedLifecycle
init
in class LoadbalanceEndpoint
synapseEnvironment
- SynapseEnvironment to be used for initializationpublic void send(MessageContext synCtx)
Endpoint
send
in interface Endpoint
send
in class LoadbalanceEndpoint
synCtx
- MessageContext to be sent.public Dispatcher getDispatcher()
public void setDispatcher(Dispatcher dispatcher)
public void onChildEndpointFail(Endpoint endpoint, MessageContext synCtx)
onChildEndpointFail
in interface Endpoint
onChildEndpointFail
in class LoadbalanceEndpoint
endpoint
- Failed endpoint.synCtx
- MessageContext of the failed message.public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.