public final class GroupedActionListener<T> extends java.lang.Object implements ActionListener<T>
Constructor and Description |
---|
GroupedActionListener(ActionListener<java.util.Collection<T>> delegate,
int groupSize,
java.util.Collection<T> defaults)
Creates a new listener
|
Modifier and Type | Method and Description |
---|---|
void |
onFailure(java.lang.Exception e)
A failure caused by an exception at some phase of the task.
|
void |
onResponse(T element)
Handle action response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFailure, onResponse, wrap
public GroupedActionListener(ActionListener<java.util.Collection<T>> delegate, int groupSize, java.util.Collection<T> defaults)
delegate
- the delegate listenergroupSize
- the group sizepublic void onResponse(T element)
ActionListener
onResponse
in interface ActionListener<T>
public void onFailure(java.lang.Exception e)
ActionListener
onFailure
in interface ActionListener<T>