rpc.turbo.transport.client.future.RequestWithFuture Maven / Gradle / Ivy
The newest version!
package rpc.turbo.transport.client.future;
import java.util.concurrent.CompletableFuture;
import rpc.turbo.protocol.Request;
import rpc.turbo.protocol.Response;
public class RequestWithFuture {
private Request request;
private CompletableFuture future;
private long expireTime;
public RequestWithFuture(Request request, CompletableFuture future, long expireTime) {
this.request = request;
this.future = future;
this.expireTime = expireTime;
}
public Request getRequest() {
return request;
}
public void setRequest(Request request) {
this.request = request;
}
public CompletableFuture getFuture() {
return future;
}
public void setFuture(CompletableFuture future) {
this.future = future;
}
public long getExpireTime() {
return expireTime;
}
public void setExpireTime(long expireTime) {
this.expireTime = expireTime;
}
}