|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An EventSubscriber
represents a connection to the
workflow engine's event queue. From its creation with
until its
destruction with WorkflowService.createEventSubscriber
all events from the workflow
engine are delivered to the WorkflowService.release
EventSubscriber
.
EventSubscriber
s should be released using
when
no longer needed as they may consume considerable resources.
WorkflowService.release
Method Summary | |
WfAuditEvent |
receive()
Receives the next audit event. |
WfAuditEvent |
receive(long timeout)
Receives the next audit event that arrives within the specified timeout interval. |
WfAuditEvent |
receiveNoWait()
Receives the next audit event if one is immediately available. |
void |
setEventHandler(WfAuditHandler handler)
Sets a handler for received events that is automatically invoked. |
Method Detail |
public WfAuditEvent receive() throws java.io.IOException
java.io.IOException
- if an error occurspublic WfAuditEvent receive(long timeout) throws java.io.IOException
timeout
- the timeout value (in milliseconds). If 0, the
method blocks until a message is received.
null
if the timeout
expires
java.io.IOException
- if an error occurspublic WfAuditEvent receiveNoWait() throws java.io.IOException
null
if no event is
available
java.io.IOException
- if an error occurspublic void setEventHandler(WfAuditHandler handler) throws java.io.IOException
receive
methods may not be called.
handler
- the event handler
java.io.IOException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |