public class CollectionResultListener<E> extends Object implements IResultListener<E>, IUndoneResultListener<E>
Constructor and Description |
---|
CollectionResultListener(int num,
boolean ignorefailes,
IFunctionalResultListener<Collection<E>> resultDelegate,
IFunctionalExceptionListener exceptionDelegate)
Create a new collection listener.
|
CollectionResultListener(int num,
boolean ignorefailures,
IResultListener<Collection<E>> delegate)
Create a new collection listener.
|
CollectionResultListener(int num,
IFunctionalResultListener<Collection<E>> resultDelegate)
Create a new collection listener that uses default exception handling/logging.
|
CollectionResultListener(int num,
IFunctionalResultListener<Collection<E>> resultDelegate,
IFunctionalExceptionListener exceptionDelegate)
Create a new collection listener.
|
CollectionResultListener(int num,
IResultListener<Collection<E>> delegate)
Create a new collection listener that stops on failures.
|
Modifier and Type | Method and Description |
---|---|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
exceptionOccurredIfUndone(Exception exception)
Called when an exception occurred.
|
boolean |
isUndone()
Get the undone.
|
void |
resultAvailable(E result)
Called when some result is available.
|
void |
resultAvailableIfUndone(E result)
Called when the result is available.
|
public CollectionResultListener(int num, IFunctionalResultListener<Collection<E>> resultDelegate)
num
- The expected number of results.resultDelegate
- The functional delegate result listener.public CollectionResultListener(int num, IFunctionalResultListener<Collection<E>> resultDelegate, IFunctionalExceptionListener exceptionDelegate)
num
- The expected number of results.resultDelegate
- The functional delegate result listener.exceptionDelegate
- The functional delegate exception listener.
Passing null
enables default exception logging.public CollectionResultListener(int num, IResultListener<Collection<E>> delegate)
num
- The expected number of results.delegate
- The delegate result listener.public CollectionResultListener(int num, boolean ignorefailes, IFunctionalResultListener<Collection<E>> resultDelegate, IFunctionalExceptionListener exceptionDelegate)
num
- The expected number of results.ignorefailures
- When set to true failures will be tolerated and
just not be added to the result collection.resultDelegate
- The functional delegate result listener.exceptionDelegate
- The functional delegate exception listener.
Passing null
enables default exception logging.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 IFunctionalResultListener<E>
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exception
- The exception.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 © 2015. All Rights Reserved.