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

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

package com.kaka.notice;

/**
 * 同步处理结果
 *
 * @param  泛型参数
 * @author zkpursuit
 */
public class SyncResult implements IResult {

    private volatile V result;

    public SyncResult() {
    }

    SyncResult(V result) {
        this.set(result);
    }

    /**
     * 赋值事件处理结果
     *
     * @param result 事件处理结果
     */
    @Override
    public void set(V result) {
        this.result = result;
    }

    /**
     * 获取事件处理结果
     *
     * @return 事件处理结果
     */
    @Override
    public V get() {
        return this.result;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy