|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractMessageDispatcherFactory
public abstract class AbstractMessageDispatcherFactory
AbstractMessageDispatcherFactory is a base implementation of the
MessageDispatcherFactory interface for managing the lifecycle of
message dispatchers.
MessageDispatcherFactory| Constructor Summary | |
|---|---|
AbstractMessageDispatcherFactory()
|
|
| Method Summary | |
|---|---|
void |
activate(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
Invoked before the given dispatcher is handed out to a client, but not after MessageDispatcherFactory.create(OutboundEndpoint). |
abstract MessageDispatcher |
create(OutboundEndpoint endpoint)
Creates a new message dispatcher instance, initialised with the passed endpoint. |
void |
destroy(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
Invoked when a dispatcher returned false for
MessageDispatcherFactory.validate(OutboundEndpoint, MessageDispatcher). |
boolean |
isCreateDispatcherPerRequest()
This default implementation of MessageDispatcherFactory.isCreateDispatcherPerRequest() returns
false, which means that dispatchers are pooled according to
their lifecycle as described in MessageDispatcher. |
void |
passivate(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
Invoked immediately before the given dispatcher is returned to its pool. |
String |
toString()
|
boolean |
validate(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
Invoked after the dispatcher is returned from a client but before it is prepared for return to its pool via MessageDispatcherFactory.passivate(OutboundEndpoint, MessageDispatcher). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMessageDispatcherFactory()
| Method Detail |
|---|
public boolean isCreateDispatcherPerRequest()
MessageDispatcherFactory.isCreateDispatcherPerRequest() returns
false, which means that dispatchers are pooled according to
their lifecycle as described in MessageDispatcher.
isCreateDispatcherPerRequest in interface MessageDispatcherFactoryfalse by default, unless overwritten by a subclass.
public abstract MessageDispatcher create(OutboundEndpoint endpoint)
throws MuleException
MessageDispatcherFactory
create in interface MessageDispatcherFactoryendpoint - the endoint for which this dispatcher should be created
MessageDispatcher for this
transport
MuleException - if the dispatcher cannot be created
public void activate(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
throws MuleException
MessageDispatcherFactoryMessageDispatcherFactory.create(OutboundEndpoint).
activate in interface MessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be activated
MuleException - if the dispatcher cannot be activated
public void destroy(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
MessageDispatcherFactoryfalse for
MessageDispatcherFactory.validate(OutboundEndpoint, MessageDispatcher).
destroy in interface MessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be validated
public void passivate(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
MessageDispatcherFactory
passivate in interface MessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be passivated
public boolean validate(OutboundEndpoint endpoint,
MessageDispatcher dispatcher)
MessageDispatcherFactoryMessageDispatcherFactory.passivate(OutboundEndpoint, MessageDispatcher).
validate in interface MessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be validated
true if the dispatcher is valid for reuse,
false otherwise.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||