public class LatchedActionListener<T> extends Object implements ActionListener<T>
CountDownLatch
that
will be counted down after onResponse or onFailure is calledConstructor 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)
ActionListener
onResponse
in interface ActionListener<T>
public void onFailure(Throwable e)
ActionListener
onFailure
in interface ActionListener<T>
Copyright © 2009–2016. All rights reserved.