public interface EdnJmsEventReader
read() or read(long) An object of BusinessEvent is returned or null if there is no event available or event read timed out. In EDN Java Client API framework, an instance of EdnJmsEventReader is internally created by EdnJmsEventSubscriber which is in turn created by invoking subscribe API methods through EdnJmsConnection. Through interfaces EdnJmsEventSubscriber and EdnJmsEventReader, the client code has fine grained control over the event consuming: Specifically, EdnJmsEventReader allows single event read such that the client code is responsible for event consumption details such as how events be polled. Note, client code is not suppose to provide implementation of this interface, nor instantiate an instance directly, EDN Java Client API framework provides implementation and return an instance as the result of calling one of the below subscribe methods from class EdnJmsConnection: EdnJmsConnection.subscribeOnly(EdnSubscribeContext) EdnJmsConnection.subscribeOnly(javax.xml.namespace.QName, String) EdnJmsConnection.subscribeOnly(javax.xml.namespace.QName, oracle.fabric.blocks.event.ConsistencyLevel, oracle.fabric.blocks.event.XPathFilter, oracle.fabric.blocks.event.BusinessEventHandler, boolean, long, String)| Modifier and Type | Method and Description |
|---|---|
EdnJmsEventSubscriber |
getEdnEventSubscriber()
Get the
EdnJmsEventSubscriber instance associated with this EdnJmsEventReader instance |
BusinessEvent |
read()
Read (consume) one event from the EDN JMS topic and return it to the caller
|
BusinessEvent |
read(long timeout)
Read (consume) one event from the EDN JMS topic and return it to the caller
|
BusinessEvent read()
BusinessEvent read(long timeout)
timeout - - timeout (in millisecond) for receiving eventEdnJmsEventSubscriber getEdnEventSubscriber()
EdnJmsEventSubscriber instance associated with this EdnJmsEventReader instance