public class LatchedActionListener<T> extends Object implements ActionListener<T>
CountDownLatch that
will be counted down after onResponse or onFailure is called| Constructor and Description |
|---|
LatchedActionListener(ActionListener<T> delegate,
CountDownLatch latch) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable e)
A failure handler.
|
void |
onResponse(T t)
A response handler.
|
public LatchedActionListener(ActionListener<T> delegate, CountDownLatch latch)
public void onResponse(T t)
ActionListeneronResponse in interface ActionListener<T>public void onFailure(Throwable e)
ActionListeneronFailure in interface ActionListener<T>Copyright © 2009–2016. All rights reserved.