public class LatchedActionListener<T> extends java.lang.Object implements ActionListener<T>
CountDownLatch that
will be counted down after onResponse or onFailure is called| Constructor and Description |
|---|
LatchedActionListener(ActionListener<T> delegate,
java.util.concurrent.CountDownLatch latch) |
| 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 t)
Handle action response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonFailure, onResponse, toBiConsumer, wrap, wrappublic 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>