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

org.zbus.remoting.ServerEventAdaptor Maven / Gradle / Ivy

The newest version!
package org.zbus.remoting;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.zbus.remoting.znet.EventAdaptor;

public abstract class ServerEventAdaptor extends EventAdaptor{  
	protected Map handlerMap = new ConcurrentHashMap();
	
	protected MessageHandler globalHandler;
   
	public void registerHandler(String command, MessageHandler handler){
    	this.handlerMap.put(command, handler);
    }
    
    public void registerGlobalHandler(MessageHandler beforeHandler) {
		this.globalHandler = beforeHandler;
	}  
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy