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) |
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–2017. All rights reserved.