|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.FaultHandler org.apache.synapse.endpoints.AbstractEndpoint org.apache.synapse.endpoints.RecipientListEndpoint
public class RecipientListEndpoint
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.
Field Summary | |
---|---|
static int |
DEFAULT_MAX_POOL
|
Fields inherited from class org.apache.synapse.endpoints.AbstractEndpoint |
---|
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, trace |
Constructor Summary | |
---|---|
RecipientListEndpoint()
|
|
RecipientListEndpoint(int poolSize)
|
Method Summary | |
---|---|
void |
destroy()
This method should implement the destroying of the implemented parts of the configuration. |
int |
getCurrentPoolSize()
|
Value |
getDynamicEndpointSet()
|
List<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<Member> members)
|
Methods inherited from class org.apache.synapse.FaultHandler |
---|
getStackTrace, handleFault, handleFault |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_POOL
Constructor Detail |
---|
public RecipientListEndpoint(int poolSize)
public RecipientListEndpoint()
Method Detail |
---|
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<Member> getMembers()
public void setMembers(List<Member> members)
public Value getDynamicEndpointSet()
public void setDynamicEndpointSet(Value dynamicEndpointSet)
public int getCurrentPoolSize()
public boolean isFailover()
public void setFailover(boolean failover)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |