ActionListener<T>public class LatchedActionListener<T> extends java.lang.Object implements ActionListener<T>
CountDownLatch that
will be counted down after onResponse or onFailure is called| Constructor | 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)
ActionListeneronResponse in interface ActionListener<T>public void onFailure(java.lang.Exception e)
ActionListeneronFailure in interface ActionListener<T>