|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transport.AbstractMessageRequesterFactory
public abstract class AbstractMessageRequesterFactory
A base implementation of the MessageRequesterFactory
interface for managing the
lifecycle of message requesters.
MessageDispatcherFactory
Constructor Summary | |
---|---|
AbstractMessageRequesterFactory()
|
Method Summary | |
---|---|
void |
activate(InboundEndpoint endpoint,
MessageRequester requester)
Invoked before the given requester is handed out to a client, but not after MessageRequesterFactory.create(org.mule.api.endpoint.InboundEndpoint) . |
abstract MessageRequester |
create(InboundEndpoint endpoint)
Creates a new message requester instance, initialised with the passed endpoint. |
void |
destroy(InboundEndpoint endpoint,
MessageRequester requester)
Invoked when a requester returned false for
MessageRequesterFactory.validate(org.mule.api.endpoint.InboundEndpoint, org.mule.api.transport.MessageRequester) . |
boolean |
isCreateRequesterPerRequest()
This default implementation of MessageDispatcherFactory.isCreateDispatcherPerRequest() returns
false , which means that dispatchers are pooled according to
their lifecycle as described in MessageRequester . |
void |
passivate(InboundEndpoint endpoint,
MessageRequester requester)
Invoked immediately before the given requester is returned to its pool. |
String |
toString()
|
boolean |
validate(InboundEndpoint endpoint,
MessageRequester requester)
Invoked after the requester is returned from a client but before it is prepared for return to its pool via MessageRequesterFactory.passivate(org.mule.api.endpoint.InboundEndpoint, org.mule.api.transport.MessageRequester) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractMessageRequesterFactory()
Method Detail |
---|
public boolean isCreateRequesterPerRequest()
MessageDispatcherFactory.isCreateDispatcherPerRequest()
returns
false
, which means that dispatchers are pooled according to
their lifecycle as described in MessageRequester
.
isCreateRequesterPerRequest
in interface MessageRequesterFactory
false
by default, unless overwritten by a subclass.public abstract MessageRequester create(InboundEndpoint endpoint) throws MuleException
MessageRequesterFactory
create
in interface MessageRequesterFactory
endpoint
- the endoint for which this requester should be created
MessageRequester
for this
transport
MuleException
- if the requester cannot be createdpublic void activate(InboundEndpoint endpoint, MessageRequester requester) throws MuleException
MessageRequesterFactory
MessageRequesterFactory.create(org.mule.api.endpoint.InboundEndpoint)
.
activate
in interface MessageRequesterFactory
endpoint
- the endpoint of the requesterrequester
- the requester to be activated
MuleException
- if the requester cannot be activatedpublic void destroy(InboundEndpoint endpoint, MessageRequester requester)
MessageRequesterFactory
false
for
MessageRequesterFactory.validate(org.mule.api.endpoint.InboundEndpoint, org.mule.api.transport.MessageRequester)
.
destroy
in interface MessageRequesterFactory
endpoint
- the endpoint of the requesterrequester
- the requester to be validatedpublic void passivate(InboundEndpoint endpoint, MessageRequester requester)
MessageRequesterFactory
passivate
in interface MessageRequesterFactory
endpoint
- the endpoint of the requesterrequester
- the requester to be passivatedpublic boolean validate(InboundEndpoint endpoint, MessageRequester requester)
MessageRequesterFactory
MessageRequesterFactory.passivate(org.mule.api.endpoint.InboundEndpoint, org.mule.api.transport.MessageRequester)
.
validate
in interface MessageRequesterFactory
endpoint
- the endpoint of the requesterrequester
- the requester to be validated
true
if the requester 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 |