
org.zbus.server.ZbusServerDispachterManager 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.server;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import org.zbus.remoting.ServerDispachterManager;
import org.zbus.remoting.ServerEventAdaptor;
import org.zbus.remoting.znet.DispatcherManager;
public class ZbusServerDispachterManager extends ServerDispachterManager{
private ServerEventAdaptor serverEventAdaptor = new ZbusServerEventAdaptor();
public ZbusServerDispachterManager(
ExecutorService executor,
int engineCount,
String engineNamePrefix) throws IOException{
super(executor,engineCount, "ZbusServerDispachterManager");
}
public ZbusServerDispachterManager(int engineCount) throws IOException {
this(DispatcherManager.newDefaultExecutor(),
engineCount, "ZbusServerDispachterManager");
}
public ZbusServerDispachterManager() throws IOException {
this(DispatcherManager.defaultDispatcherSize());
}
@Override
public ServerEventAdaptor buildEventAdaptor() {
//服务器端,所有Session共享一个事件处理器
return this.serverEventAdaptor;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy