com.kaka.notice.RemoteAsynResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kaka-core Show documentation
Show all versions of kaka-core Show documentation
An event driven framework
The newest version!
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;
}
}