public class FutureAdapter<V> extends Object implements io.openmessaging.Future<V>
| 构造器和说明 |
|---|
FutureAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(io.openmessaging.FutureListener listener) |
boolean |
cancel(boolean mayInterruptIfRunning) |
protected void |
doNotify() |
V |
get() |
V |
get(long timeout) |
Throwable |
getThrowable() |
protected V |
getValue() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setThrowable(Throwable throwable) |
void |
setValue(Object value) |
public void setThrowable(Throwable throwable)
public void setValue(Object value)
protected V getValue()
protected void doNotify()
public boolean cancel(boolean mayInterruptIfRunning)
cancel 在接口中 io.openmessaging.Future<V>public boolean isCancelled()
isCancelled 在接口中 io.openmessaging.Future<V>public boolean isDone()
isDone 在接口中 io.openmessaging.Future<V>public void addListener(io.openmessaging.FutureListener listener)
addListener 在接口中 io.openmessaging.Future<V>Copyright © 2020 Joyqueue Community. All rights reserved.