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

org.yx.rpc.log.RpcLogs Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
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