ActionListener<T>
public class LatchedActionListener<T> extends java.lang.Object implements ActionListener<T>
CountDownLatch
that
will be counted down after onResponse or onFailure is calledConstructor | Description |
---|---|
LatchedActionListener(ActionListener<T> delegate,
java.util.concurrent.CountDownLatch latch) |
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 t) |
Handle action response.
|
public LatchedActionListener(ActionListener<T> delegate, java.util.concurrent.CountDownLatch latch)
public void onResponse(T t)
ActionListener
onResponse
in interface ActionListener<T>
public void onFailure(java.lang.Exception e)
ActionListener
onFailure
in interface ActionListener<T>