All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kaka.notice.RemoteAsynResult Maven / Gradle / Ivy

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy