
org.zbus.remoting.ServerEventAdaptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zbus-client Show documentation
Show all versions of zbus-client Show documentation
lightweight message queue, service bus
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