public class CounterResultListener<E> extends Object implements IResultListener<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.
|
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.
|
void |
resultAvailable(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()
Copyright © 2012. All Rights Reserved.