org.mule.umo.provider
Interface UMOMessageDispatcher

All Superinterfaces:
Disposable
All Known Implementing Classes:
AbstractMessageDispatcher

public interface UMOMessageDispatcher
extends Disposable

Author:
Ross Mason

//TODO document


Field Summary
static long RECEIVE_NO_WAIT
           
static long RECEIVE_WAIT_INDEFINITELY
           
 
Method Summary
 void dispatch(UMOEvent event)
          Dispatches an event from the endpoint to the external system
 UMOConnector getConnector()
           
 java.lang.Object getDelegateSession()
           
 boolean isDisposed()
           
 UMOMessage receive(UMOEndpointURI endpointUri, long timeout)
           
 UMOMessage send(UMOEvent event)
          Sends an event from the endpoint to the external system
 
Methods inherited from interface org.mule.umo.lifecycle.Disposable
dispose
 

Field Detail

RECEIVE_WAIT_INDEFINITELY

public static final long RECEIVE_WAIT_INDEFINITELY
See Also:
Constant Field Values

RECEIVE_NO_WAIT

public static final long RECEIVE_NO_WAIT
See Also:
Constant Field Values
Method Detail

dispatch

public void dispatch(UMOEvent event)
              throws java.lang.Exception
Dispatches an event from the endpoint to the external system

Parameters:
event - The event to dispatch
Throws:
java.lang.Exception - if the event fails to be dispatched

send

public UMOMessage send(UMOEvent event)
                throws java.lang.Exception
Sends an event from the endpoint to the external system

Parameters:
event - The event to send
Returns:
event the response form the external system wrapped in a UMOEvent
Throws:
java.lang.Exception - if the event fails to be dispatched

receive

public UMOMessage receive(UMOEndpointURI endpointUri,
                          long timeout)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getDelegateSession

public java.lang.Object getDelegateSession()
                                    throws UMOException
Throws:
UMOException

getConnector

public UMOConnector getConnector()

isDisposed

public boolean isDisposed()


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.