public class SwingIntermediateResultListener<E> extends Object implements IIntermediateResultListener<E>
Constructor and Description |
---|
SwingIntermediateResultListener(IIntermediateResultListener<E> listener)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
customExceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
customFinished()
Declare that the future is finished.
|
void |
customIntermediateResultAvailable(E result)
Called when an intermediate result is available.
|
void |
customResultAvailable(Collection<E> result)
Called when the result is available.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
finished()
Declare that the future is finished.
|
void |
intermediateResultAvailable(E result)
Called when an intermediate result is available.
|
void |
resultAvailable(Collection<E> result)
Called when the result is available.
|
public SwingIntermediateResultListener(IIntermediateResultListener<E> listener)
public void resultAvailable(Collection<E> result)
resultAvailable
in interface IIntermediateResultListener<E>
resultAvailable
in interface IResultListener<Collection<E>>
result
- The final result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<Collection<E>>
exception
- The exception.public void intermediateResultAvailable(E result)
intermediateResultAvailable
in interface IIntermediateResultListener<E>
result
- The result.public void finished()
finished
in interface IIntermediateResultListener<E>
public void customFinished()
public void customResultAvailable(Collection<E> result)
result
- The result.public void customExceptionOccurred(Exception exception)
exception
- The exception.public void customIntermediateResultAvailable(E result)
result
- The result.Copyright © 2012. All Rights Reserved.