ActionListener<T>
public final class GroupedActionListener<T> extends java.lang.Object implements ActionListener<T>
Constructor | Description |
---|---|
GroupedActionListener(ActionListener<java.util.Collection<T>> delegate,
int groupSize,
java.util.Collection<T> defaults) |
Creates a new listener
|
Modifier and Type | Method | 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.
|
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>