public class TimeoutResultListener<E> extends Object implements IResultListener<E>, IFutureCommandListener
| Constructor and Description |
|---|
TimeoutResultListener(long timeout,
IExternalAccess exta,
boolean realtime,
String message,
IResultListener<E> listener)
Create a new listener.
|
TimeoutResultListener(long timeout,
IExternalAccess exta,
IResultListener<E> listener)
Create a new listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the timeout.
|
void |
commandAvailable(Object command)
Called when a command is available.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
resultAvailable(E result)
Called when the result is available.
|
public TimeoutResultListener(long timeout,
IExternalAccess exta,
IResultListener<E> listener)
public TimeoutResultListener(long timeout,
IExternalAccess exta,
boolean realtime,
String message,
IResultListener<E> listener)
public void resultAvailable(E result)
resultAvailable in interface IFunctionalResultListener<E>result - The result.public void exceptionOccurred(Exception exception)
exceptionOccurred in interface IFunctionalExceptionListenerexception - The exception.public void cancel()
public void commandAvailable(Object command)
commandAvailable in interface IFutureCommandListenerCopyright © 2015. All Rights Reserved.