org.apache.synapse.endpoints
Class AddressEndpoint
java.lang.Object
org.apache.synapse.FaultHandler
org.apache.synapse.endpoints.AbstractEndpoint
org.apache.synapse.endpoints.AddressEndpoint
- All Implemented Interfaces:
- Endpoint, ManagedLifecycle, Nameable, PropertyInclude, SynapseArtifact
public class AddressEndpoint
- extends AbstractEndpoint
This class represents an actual endpoint to send the message. It is responsible for sending the
message, performing retries if a failure occurred and informing the parent endpoint if a failure
couldn't be recovered.
Method Summary |
void |
onFault(MessageContext synCtx)
On a fault, propagate to parent if any, or call into the fault handler |
void |
onSuccess()
The SynapseCallback Receiver notifies an endpoint, if a message was successfully processed
to give it a chance to clear up or reset its state to active |
void |
send(MessageContext synCtx)
Sends the message context according to an endpoint specific behavior. |
Methods inherited from class org.apache.synapse.endpoints.AbstractEndpoint |
addProperties, addProperty, destroy, evaluateProperties, getChildren, getContext, getDefinition, getDescription, getErrorHandler, getFileName, getMetricsMBean, getName, getParentEndpoint, getProperties, getProperty, handleException, handleException, informFailure, init, isAnonymous, isInitialized, isLeafEndpoint, isRetryDisabled, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, onChildEndpointFail, prepareForEndpointStatistics, readyToSend, removeProperty, setAnonymous, setChildren, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setName, setParentEndpoint, toString, traceOrDebug |
AddressEndpoint
public AddressEndpoint()
onFault
public void onFault(MessageContext synCtx)
- Description copied from class:
AbstractEndpoint
- On a fault, propagate to parent if any, or call into the fault handler
- Overrides:
onFault
in class AbstractEndpoint
- Parameters:
synCtx
- the message at hand
onSuccess
public void onSuccess()
- Description copied from class:
AbstractEndpoint
- The SynapseCallback Receiver notifies an endpoint, if a message was successfully processed
to give it a chance to clear up or reset its state to active
- Specified by:
onSuccess
in interface Endpoint
- Overrides:
onSuccess
in class AbstractEndpoint
send
public void send(MessageContext synCtx)
- Description copied from interface:
Endpoint
- Sends the message context according to an endpoint specific behavior.
- Specified by:
send
in interface Endpoint
- Overrides:
send
in class AbstractEndpoint
- Parameters:
synCtx
- MessageContext to be sent.
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.