public class FailoverEndpoint extends AbstractEndpoint
anonymous, artifactContainerName, errorHandler, fileName, initialized, isClusteringEnabled, log, trace| Constructor and Description |
|---|
FailoverEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isBuildMessageAtt() |
boolean |
isDynamic() |
void |
onChildEndpointFail(Endpoint endpoint,
MessageContext synMessageContext)
Endpoints that contain other endpoints should implement this method.
|
boolean |
readyToSend()
Returns true to indicate that the endpoint is ready to service requests
|
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior.
|
void |
setBuildMessageAtt(boolean buildMessage)
Set buildMessage Attribute from failover config
|
void |
setBuildMessageAttAvailable(boolean available)
Set whether failover config has the buildMessage config
|
void |
setDynamic(boolean dynamic) |
addProperties, addProperty, destroy, evaluateProperties, executeEpTypeSpecificFunctions, getArtifactContainerName, getChildren, getContext, getDefinition, getDescription, getErrorHandler, getFileName, getIsEdited, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, getReportingName, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetry, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, logSetter, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAnonymous, setArtifactContainerName, setChildren, setComponentStatisticsId, setContentAware, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setForceBuildMC, setIsEdited, setName, setParentEndpoint, toString, traceOrDebuggetStackTrace, handleFault, handleFaultpublic void init(SynapseEnvironment synapseEnvironment)
ManagedLifecycleinit in interface ManagedLifecycleinit in class AbstractEndpointsynapseEnvironment - SynapseEnvironment to be used for initializationpublic void send(MessageContext synCtx)
Endpointsend in interface Endpointsend in class AbstractEndpointsynCtx - MessageContext to be sent.public void onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
EndpointonChildEndpointFail in interface EndpointonChildEndpointFail in class AbstractEndpointendpoint - The child endpoint which caused the exception.synMessageContext - MessageContext that was used in the failed attempt.public boolean readyToSend()
EndpointreadyToSend in interface EndpointreadyToSend in class AbstractEndpointpublic boolean isDynamic()
public boolean isBuildMessageAtt()
public void setDynamic(boolean dynamic)
public void setBuildMessageAtt(boolean buildMessage)
buildMessage - true or falsepublic void setBuildMessageAttAvailable(boolean available)
available - true or falseCopyright © 2005–2019 Apache Software Foundation. All rights reserved.