public class CollectionResultListener<E> extends Object implements IResultListener<E>
| Constructor and Description |
|---|
CollectionResultListener(int num,
boolean ignorefailures,
IResultListener<Collection<E>> delegate)
Create a new collection listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
resultAvailable(E result)
Called when some result is available.
|
public CollectionResultListener(int num,
boolean ignorefailures,
IResultListener<Collection<E>> delegate)
num - The expected number of results.ignorefailures - When set to true failures will be
tolerated and just not be added to the result collection.delegate - The delegate result listener.public void resultAvailable(E result)
resultAvailable in interface IResultListener<E>result - The result.public void exceptionOccurred(Exception exception)
exceptionOccurred in interface IResultListener<E>exception - The exception.Copyright © 2012. All Rights Reserved.