public abstract class IntermediateExceptionDelegationResultListener<E,T> extends Object implements IIntermediateResultListener<E>, IFutureCommandListener, IUndoneIntermediateResultListener<E>
Constructor and Description |
---|
IntermediateExceptionDelegationResultListener(Future<T> future)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
commandAvailable(Object command)
Called when a command is available.
|
void |
customResultAvailable(Collection<E> result)
Called when the result is available.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
exceptionOccurredIfUndone(Exception exception)
Called when an exception occurred.
|
abstract void |
finished()
Declare that the future is finished.
|
void |
finishedIfUndone()
Declare that the future is finished.
|
abstract 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 |
resultAvailable(Collection<E> result)
Called when the result is available.
|
void |
resultAvailableIfUndone(Collection<E> result)
Called when the result is available.
|
public void resultAvailable(Collection<E> result)
resultAvailable
in interface IIntermediateResultListener<E>
resultAvailable
in interface IResultListener<Collection<E>>
result
- The final result.public abstract void intermediateResultAvailable(E result)
intermediateResultAvailable
in interface IIntermediateResultListener<E>
result
- The result.public abstract void finished()
finished
in interface IIntermediateResultListener<E>
public void customResultAvailable(Collection<E> result)
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<Collection<E>>
exception
- The exception.public void resultAvailableIfUndone(Collection<E> result)
resultAvailableIfUndone
in interface IUndoneResultListener<Collection<E>>
result
- The result.public void exceptionOccurredIfUndone(Exception exception)
exceptionOccurredIfUndone
in interface IUndoneResultListener<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 void commandAvailable(Object command)
commandAvailable
in interface IFutureCommandListener
public boolean isUndone()
Copyright © 2013. All Rights Reserved.