public class RemoteTaskEventQueue extends AbstractClientObject<ClientContext> implements java.lang.Iterable<RemoteTaskEvent>
RemoteTaskEvents for a particular task identified
by its RemoteTaskId. On creation this instance is added to the clients RemoteTaskEventWaiterList
for receiving the incoming events. On receiving the FINISHED event it is removed from the list.| Constructor and Description |
|---|
RemoteTaskEventQueue(ClientContext clientCtx,
RemoteTaskId taskId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptEvent(RemoteTaskEvent e) |
RemoteTaskEvent |
awaitEvent()
Blocks the calling thread until the desired
RemoteTaskEvent is received |
void |
close()
Needs to be called when no more calls are being awaited by the user.
|
RemoteTaskEventIterator |
iterator() |
getClientConfig, getClientContextgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringpublic RemoteTaskEventQueue(ClientContext clientCtx, RemoteTaskId taskId)
public RemoteTaskEvent awaitEvent()
RemoteTaskEvent is receivedpublic void close()
RemoteTaskEvent is received.public RemoteTaskEventIterator iterator()
iterator in interface java.lang.Iterable<RemoteTaskEvent>public boolean acceptEvent(RemoteTaskEvent e)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.