public class LatchedActionListener<T> extends java.lang.Object implements ActionListener<T>
CountDownLatch
that
will be counted down after onResponse or onFailure is calledConstructor 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, wait
onFailure, onResponse, wrap
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>