public class TimeoutIntermediateResultListener<E> extends TimeoutResultListener<java.util.Collection<E>> implements IIntermediateResultListener<E>, IUndoneIntermediateResultListener<E>
Constructor and Description |
---|
TimeoutIntermediateResultListener(long timeout,
IExternalAccess exta,
boolean realtime,
java.lang.Object message,
IIntermediateResultListener<E> listener)
Create a new listener.
|
TimeoutIntermediateResultListener(long timeout,
IExternalAccess exta,
IIntermediateResultListener<E> listener)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurredIfUndone(java.lang.Exception exception)
Called when an exception occurred.
|
void |
finished()
Declare that the future is finished.
|
void |
finishedIfUndone()
Declare that the future is finished.
|
protected IIntermediateResultListener<E> |
getIntermediateResultListener() |
void |
intermediateResultAvailable(E result)
Called when an intermediate result is available.
|
void |
intermediateResultAvailableIfUndone(E result)
Called when an intermediate result is available.
|
boolean |
isUndone()
Get the undone.
|
void |
resultAvailableIfUndone(java.util.Collection<E> result)
Called when the result is available.
|
cancel, commandAvailable, exceptionOccurred, initTimer, resultAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resultAvailable
exceptionOccurred
public TimeoutIntermediateResultListener(long timeout, IExternalAccess exta, IIntermediateResultListener<E> listener)
public TimeoutIntermediateResultListener(long timeout, IExternalAccess exta, boolean realtime, java.lang.Object message, IIntermediateResultListener<E> listener)
protected IIntermediateResultListener<E> getIntermediateResultListener()
public void intermediateResultAvailable(E result)
intermediateResultAvailable
in interface IIntermediateResultListener<E>
result
- The result.public void finished()
finished
in interface IIntermediateResultListener<E>
public void resultAvailableIfUndone(java.util.Collection<E> result)
resultAvailableIfUndone
in interface IUndoneResultListener<java.util.Collection<E>>
result
- The result.public void exceptionOccurredIfUndone(java.lang.Exception exception)
exceptionOccurredIfUndone
in interface IUndoneResultListener<java.util.Collection<E>>
exception
- The exception.public void intermediateResultAvailableIfUndone(E result)
intermediateResultAvailableIfUndone
in interface IUndoneIntermediateResultListener<E>
result
- The result.public void finishedIfUndone()
finishedIfUndone
in interface IUndoneIntermediateResultListener<E>
public boolean isUndone()