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

org.lumongo.server.connection.StandardConnectionNotifier Maven / Gradle / Ivy

The newest version!
package org.lumongo.server.connection;

import com.googlecode.protobuf.pro.duplex.RpcClientChannel;
import com.googlecode.protobuf.pro.duplex.listener.TcpConnectionEventListener;
import org.apache.log4j.Logger;

public class StandardConnectionNotifier implements TcpConnectionEventListener {

	private final Logger log;

	public StandardConnectionNotifier(Logger log) {
		this.log = log;
	}

	@Override
	public void connectionOpened(RpcClientChannel clientChannel) {
		log.info("connectionOpened: " + clientChannel);
	}

	@Override
	public void connectionClosed(RpcClientChannel clientChannel) {
		log.info("connectionClosed: " + clientChannel);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy