1 10 11 package org.mule.umo.provider; 12 13 import org.mule.umo.UMOEvent; 14 import org.mule.umo.UMOException; 15 import org.mule.umo.UMOMessage; 16 import org.mule.umo.endpoint.UMOEndpointURI; 17 import org.mule.umo.endpoint.UMOImmutableEndpoint; 18 import org.mule.umo.lifecycle.Disposable; 19 20 import java.io.OutputStream ; 21 22 32 public interface UMOMessageDispatcher extends Disposable, UMOConnectable 33 { 34 long RECEIVE_WAIT_INDEFINITELY = 0; 35 long RECEIVE_NO_WAIT = -1; 36 37 43 void dispatch(UMOEvent event) throws DispatchException; 44 45 52 UMOMessage send(UMOEvent event) throws DispatchException; 53 54 67 UMOMessage receive(UMOEndpointURI endpointUri, long timeout) throws Exception ; 68 69 81 UMOMessage receive(UMOImmutableEndpoint endpoint, long timeout) throws Exception ; 82 83 91 Object getDelegateSession() throws UMOException; 92 93 98 UMOConnector getConnector(); 99 100 106 boolean isDisposed(); 107 108 118 OutputStream getOutputStream(UMOImmutableEndpoint endpoint, UMOMessage message) throws UMOException; 119 } 120 | Popular Tags |