com.kaka.notice.RemoteAsynResult Maven / Gradle / Ivy
package com.kaka.notice;
import java.util.concurrent.TimeUnit;
/**
* 远程消息队列异步执行结果
*
* @param 结果数据类型
* @author zkpursuit
*/
class RemoteAsynResult extends AsynResult {
RemoteAsynResult() {
super(10000);
}
public boolean isDone() {
return this._isDone();
}
@Override
public V get() {
return (V) this.result;
}
@Override
public V get(long timeout, TimeUnit unit) throws Exception {
return this.get();
}
@Override
public void set(V result) {
this.result = result;
}
}