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

com.github.netty.protocol.nrpc.exception.RpcTimeoutException Maven / Gradle / Ivy

The newest version!
package com.github.netty.protocol.nrpc.exception;

/**
 * RpcTimeoutException
 *
 * @author wangzihao
 * 2018/8/20/020
 */
public class RpcTimeoutException extends RpcException {
    private long createTimestamp;
    private long expiryTimestamp;
    private long timestamp = System.currentTimeMillis();

    public RpcTimeoutException(String message, boolean writableStackTrace, long createTimestamp, long expiryTimestamp) {
        super(message, null, false, writableStackTrace);
        this.createTimestamp = createTimestamp;
        this.expiryTimestamp = expiryTimestamp;
    }

    public long getCreateTimestamp() {
        return createTimestamp;
    }

    public void setCreateTimestamp(long createTimestamp) {
        this.createTimestamp = createTimestamp;
    }

    public long getExpiryTimestamp() {
        return expiryTimestamp;
    }

    public void setExpiryTimestamp(long expiryTimestamp) {
        this.expiryTimestamp = expiryTimestamp;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy