org.mule.umo.provider
Interface UMOMessageDispatcher

All Superinterfaces:
Disposable, UMOConnectable, UMOMessageDispatching
All Known Implementing Classes:
AbstractMessageDispatcher

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

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

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

passivate

public 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:
{@link UMOMessageDispatcherFactory#passivate(org.mule.umo.endpoint.UMOImmutableEndpoint, UMOMessageDispatcher)}

validate

public 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

public UMOConnector getConnector()
Gets the connector for this dispatcher

Returns:
the connector for this dispatcher


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