org.mule.umo.provider
Interface UMOMessageDispatcher

All Superinterfaces:
Disposable, UMOConnectable, UMOMessageDispatching
All Known Implementing Classes:
AbstractMessageDispatcher, AxisMessageDispatcher, AxisWsdlMessageDispatcher, EjbMessageDispatcher, FileMessageDispatcher, FtpMessageDispatcher, HttpClientMessageDispatcher, JbiMessageDispatcher, JdbcMessageDispatcher, JmsMessageDispatcher, MulticastMessageDispatcher, OracleJmsMessageDispatcher, ProcessMessageDispatcher, QuartzMessageDispatcher, RetrieveMessageDispatcher, RmiMessageDispatcher, SmtpMessageDispatcher, StreamMessageDispatcher, TcpMessageDispatcher, TestMessageDispatcher, UdpMessageDispatcher, VMMessageDispatcher, XFireMessageDispatcher, XFireWsdlMessageDispatcher, XmppMessageDispatcher

public interface UMOMessageDispatcher
extends Disposable, UMOConnectable, UMOMessageDispatching

UMOMessageDispatcher combines UMOMessageDispatching with various lifecycle methods for the actual instances doing message sending/receiving.


Field Summary
 
Fields inherited from interface org.mule.umo.provider.UMOMessageDispatching
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
 
Method Summary
 void activate()
          This method can perform necessary state updates before any of the UMOMessageDispatching methods are invoked.
 UMOConnector getConnector()
          Gets the connector for this dispatcher
 void passivate()
          After sending/receiving a message, the dispatcher can use this method e.g.
 boolean validate()
          Determines whether this dispatcher can be reused after message sending/receiving.
 
Methods inherited from interface org.mule.umo.lifecycle.Disposable
dispose
 
Methods inherited from interface org.mule.umo.provider.UMOConnectable
connect, disconnect, getConnectionDescription, isConnected
 
Methods inherited from interface org.mule.umo.provider.UMOMessageDispatching
dispatch, receive, send
 

Method Detail

activate

void activate()
This method can perform necessary state updates before any of the UMOMessageDispatching methods are invoked.

See Also:
UMOMessageDispatcherFactory#activate(org.mule.umo.endpoint.UMOImmutableEndpoint, UMOMessageDispatcher)}

passivate

void passivate()
After sending/receiving a message, the dispatcher can use this method e.g. to clean up its internal state (if it has any) or return pooled resources to whereever it got them during activate().

See Also:
UMOMessageDispatcherFactory#passivate(org.mule.umo.endpoint.UMOImmutableEndpoint, UMOMessageDispatcher)}

validate

boolean validate()
Determines whether this dispatcher can be reused after message sending/receiving.

Returns:
true if this dispatcher can be reused, false otherwise (for example when Disposable.dispose() has been called because an Exception was raised)

getConnector

UMOConnector getConnector()
Gets the connector for this dispatcher

Returns:
the connector for this dispatcher


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.