public class RecipientListEndpoint extends AbstractEndpoint
A Recipient List endpoint can contain multiple child endpoints or member elements. It routes cloned copies of messages to each child recipient. This will assume that all immediate child endpoints are identical in state (state is replicated) or state is not maintained at those endpoints.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_POOL |
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, trace
Constructor and Description |
---|
RecipientListEndpoint() |
RecipientListEndpoint(int poolSize) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
int |
getCurrentPoolSize() |
Value |
getDynamicEndpointSet() |
List<org.apache.axis2.clustering.Member> |
getMembers() |
void |
init(SynapseEnvironment synapseEnvironment)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isFailover() |
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 |
setDynamicEndpointSet(Value dynamicEndpointSet) |
void |
setFailover(boolean failover) |
void |
setMembers(List<org.apache.axis2.clustering.Member> members) |
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 static final int DEFAULT_MAX_POOL
public RecipientListEndpoint(int poolSize)
public RecipientListEndpoint()
public void init(SynapseEnvironment synapseEnvironment)
ManagedLifecycle
init
in interface ManagedLifecycle
init
in class AbstractEndpoint
synapseEnvironment
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
destroy
in class AbstractEndpoint
public void send(MessageContext synCtx)
Endpoint
send
in interface Endpoint
send
in class AbstractEndpoint
synCtx
- MessageContext to be sent.public boolean readyToSend()
Endpoint
readyToSend
in interface Endpoint
readyToSend
in class AbstractEndpoint
public void onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
Endpoint
onChildEndpointFail
in interface Endpoint
onChildEndpointFail
in class AbstractEndpoint
endpoint
- The child endpoint which caused the exception.synMessageContext
- MessageContext that was used in the failed attempt.public List<org.apache.axis2.clustering.Member> getMembers()
public void setMembers(List<org.apache.axis2.clustering.Member> members)
public Value getDynamicEndpointSet()
public void setDynamicEndpointSet(Value dynamicEndpointSet)
public int getCurrentPoolSize()
public boolean isFailover()
public void setFailover(boolean failover)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.