|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractMessageDispatcherFactory
AbstractMessageDispatcherFactory is a base implementation of the
UMOMessageDispatcherFactory interface for managing the lifecycle of
message dispatchers.
UMOMessageDispatcherFactory| Constructor Summary | |
AbstractMessageDispatcherFactory()
|
|
| Method Summary | |
void |
activate(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
Invoked before the given dispatcher is handed out to a client, but not after create(UMOImmutableEndpoint). |
abstract UMOMessageDispatcher |
create(UMOImmutableEndpoint endpoint)
Creates a new message dispatcher instance, initialised with the passed endpoint. |
void |
destroy(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
Invoked when a dispatcher returned false for
validate(UMOImmutableEndpoint, UMOMessageDispatcher). |
boolean |
isCreateDispatcherPerRequest()
This default implementation of UMOMessageDispatcherFactory.isCreateDispatcherPerRequest() returns
false, which means that dispatchers are pooled according to
their lifecycle as described in UMOMessageDispatcher. |
void |
passivate(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
Invoked immediately before the given dispatcher is returned to its pool. |
String |
toString()
|
boolean |
validate(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
Invoked after the dispatcher is returned from a client but before it is prepared for return to its pool via passivate(UMOImmutableEndpoint, UMOMessageDispatcher). |
| 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()
UMOMessageDispatcherFactory.isCreateDispatcherPerRequest() returns
false, which means that dispatchers are pooled according to
their lifecycle as described in UMOMessageDispatcher.
isCreateDispatcherPerRequest in interface UMOMessageDispatcherFactoryfalse by default, unless overwritten by a subclass.
public abstract UMOMessageDispatcher create(UMOImmutableEndpoint endpoint)
throws UMOException
UMOMessageDispatcherFactory
create in interface UMOMessageDispatcherFactoryendpoint - the endoint for which this dispatcher should be created
UMOMessageDispatcher for this
transport
UMOException - if the dispatcher cannot be created
public void activate(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
throws UMOException
UMOMessageDispatcherFactoryUMOMessageDispatcherFactory.create(UMOImmutableEndpoint).
activate in interface UMOMessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be activated
UMOException - if the dispatcher cannot be activated
public void destroy(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
UMOMessageDispatcherFactoryfalse for
UMOMessageDispatcherFactory.validate(UMOImmutableEndpoint, UMOMessageDispatcher).
destroy in interface UMOMessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be validated
public void passivate(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
UMOMessageDispatcherFactory
passivate in interface UMOMessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be passivated
public boolean validate(UMOImmutableEndpoint endpoint,
UMOMessageDispatcher dispatcher)
UMOMessageDispatcherFactoryUMOMessageDispatcherFactory.passivate(UMOImmutableEndpoint, UMOMessageDispatcher).
validate in interface UMOMessageDispatcherFactoryendpoint - the endpoint of the dispatcherdispatcher - the dispatcher to be validated
true if the dispatcher is valid for reuse,
false otherwise.public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||