| |
|
| de.danet.an.workflow.api.EventSubscriber
EventSubscriber | public interface EventSubscriber extends WfObject(Code) | | An EventSubscriber represents a connection to the
workflow engine's event queue. From its creation with
WorkflowService.createEventSubscriberWorkflowService.createEventSubscriber until its
destruction with
WorkflowService.releaseWorkflowService.release all events from the workflow
engine are delivered to the EventSubscriber .
EventSubscriber s should be released using
WorkflowService.release WorkflowService.release when
no longer needed as they may consume considerable resources.
author: Michael Lipp version: $Revision: 1.3 $ |
receive | WfAuditEvent receive(long timeout) throws IOException(Code) | | Receives the next audit event that arrives within the specified
timeout interval.
Parameters: timeout - the timeout value (in milliseconds). If 0, themethod blocks until a message is received. the audit event or null if the timeoutexpires throws: IOException - if an error occurs |
receiveNoWait | WfAuditEvent receiveNoWait() throws IOException(Code) | | Receives the next audit event if one is immediately available.
the audit event or null if no event isavailable throws: IOException - if an error occurs |
setEventHandler | void setEventHandler(WfAuditHandler handler) throws IOException(Code) | | Sets a handler for received events that is automatically
invoked. If a handler has been set, the receive
methods may not be called.
Parameters: handler - the event handler throws: IOException - if an error occurs |
|
|
|