org.yx.rpc.log.RpcLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sumk Show documentation
Show all versions of sumk Show documentation
A quick developing framewort for internet company
package org.yx.rpc.log;
import org.yx.common.Host;
import org.yx.rpc.client.Req;
import org.yx.rpc.client.RpcResult;
/**
* 这里的属性,以及属性的子属性,都要只读,不要去修改它
* Req里面有开始时间。
* 全部时间都不为null
*
*/
public class RpcLog {
private final Host server;
private final Req req;
private final RpcResult result;
private long receiveTime;
public RpcLog(Host server, Req req, RpcResult result, long receiveTime) {
this.server = server;
this.req = req;
this.result = result;
this.receiveTime = receiveTime;
}
public long getReceiveTime() {
return receiveTime;
}
public Host getServer() {
return server;
}
public Req getReq() {
return req;
}
public RpcResult getResult() {
return result;
}
@Override
public String toString() {
return "RpcLog [server=" + server + ", req=" + req + ", result=" + result + "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy