|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UMOMessageDispatching
UMOMessageDispatching
defines generic methods for dispatching and
receiving events. The exact behaviour of the action is defined by the implementing
class.
UMOImmutableEndpoint
,
UMOMessageDispatcher
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 |
UMOMessage |
receive(long timeout)
Make a specific request to the underlying transport |
UMOMessage |
send(UMOEvent event)
Sends an event from the endpoint to the external system |
Field Detail |
---|
static final long RECEIVE_WAIT_INDEFINITELY
static final long RECEIVE_NO_WAIT
Method Detail |
---|
void dispatch(UMOEvent event) throws DispatchException
event
- The event to dispatch
DispatchException
- if the event fails to be dispatchedUMOMessage send(UMOEvent event) throws DispatchException
event
- The event to send
DispatchException
- if the event fails to be dispatchedUMOMessage receive(long timeout) throws Exception
timeout
- the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returned
Exception
- if the call to the underlying protocal cuases an exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |