public class CounterResultListener<E> extends Object implements IResultListener<E>, IUndoneResultListener<E>
Constructor and Description |
---|
CounterResultListener(int num,
boolean ignorefailures,
IResultListener<Void> delegate)
Create a new counter listener.
|
CounterResultListener(int num,
IResultListener<Void> delegate)
Create a new counter listener.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
exceptionOccurredIfUndone(Exception exception)
Called when an exception occurred.
|
int |
getCnt()
Get the cnt.
|
int |
getNumber()
Get the number.
|
boolean |
intermediateExceptionOccurred(Exception exception)
Method that can be overridden to do sth. on each
exception that occurs.
|
void |
intermediateResultAvailable(E result)
Method that can be overridden to do sth. on each
result available call.
|
boolean |
isUndone()
Get the undone.
|
void |
resultAvailable(E result)
Called when the result is available.
|
void |
resultAvailableIfUndone(E result)
Called when the result is available.
|
public CounterResultListener(int num, IResultListener<Void> delegate)
num
- The number of sub callbacks.public CounterResultListener(int num, boolean ignorefailures, IResultListener<Void> delegate)
num
- The number of sub callbacks.public void resultAvailable(E result)
resultAvailable
in interface IResultListener<E>
result
- The result.public final void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<E>
exception
- The exception.public void intermediateResultAvailable(E result)
public boolean intermediateExceptionOccurred(Exception exception)
public int getNumber()
public int getCnt()
public void resultAvailableIfUndone(E result)
resultAvailableIfUndone
in interface IUndoneResultListener<E>
result
- The result.public void exceptionOccurredIfUndone(Exception exception)
exceptionOccurredIfUndone
in interface IUndoneResultListener<E>
exception
- The exception.public boolean isUndone()
Copyright © 2013. All Rights Reserved.