org.yx.rpc.log.RpcLogs 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 java.util.Objects;
import org.yx.rpc.codec.Request;
import org.yx.rpc.server.Response;
public class RpcLogs {
private static RpcLogHandler handler = new PlainRpcLogHandler();
public static RpcLogHandler getHandler() {
return handler;
}
public static void setHandler(RpcLogHandler handler) {
RpcLogs.handler = Objects.requireNonNull(handler);
}
public static void clientLog(RpcLog log) {
handler.clientLog(log);
}
public static void serverLog(Request req, Response resp) {
handler.serverLog(req, resp);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy