public class ConcurrentListener extends CM_Listener
Modifier and Type | Class and Description |
---|---|
static interface |
ConcurrentListener.ServerFactory
In addition to providing the explicit interface methods, factory classes must also provide a constructor
with this signature:
classname(com.grey.naf.reactor.CM_Listener, com.grey.base.config.XmlConfig) |
CM_Listener.Reporter
CFGMAP_BACKLOG, CFGMAP_FACTCLASS, CFGMAP_IFACE, CFGMAP_INCRSPAWN, CFGMAP_INITSPAWN, CFGMAP_MAXSPAWN, CFGMAP_PORT, CFGMAP_SSLPORT, name
Modifier and Type | Method and Description |
---|---|
static ConcurrentListener |
create(String lname,
Dispatcher d,
Object controller,
EntityReaper rpr,
XmlConfig cfg,
Class<?> factclass,
String iface,
int port) |
static ConcurrentListener |
create(String lname,
Dispatcher d,
Object controller,
EntityReaper rpr,
XmlConfig cfg,
Map<String,Object> cfgdflts) |
void |
entityStopped(Object obj) |
Class<?> |
getServerType() |
protected void |
listenerStopped() |
protected boolean |
stopListener() |
getController, getInt, getIP, getPort, getReporter, inShutdown, makeDefaults, start, stop, stop, stopped, toString
disconnect, disconnect, dumpAppState, dumpState, eventError, getChannel, getCMID, getDatagramChannel, getDispatcher, getLogger, getReaper, getSocketChannel, getStartTime, getSystemTime, initChannelMonitor, ioDisconnected, setReaper
public static ConcurrentListener create(String lname, Dispatcher d, Object controller, EntityReaper rpr, XmlConfig cfg, Map<String,Object> cfgdflts) throws IOException
IOException
public static ConcurrentListener create(String lname, Dispatcher d, Object controller, EntityReaper rpr, XmlConfig cfg, Class<?> factclass, String iface, int port) throws IOException
IOException
public Class<?> getServerType()
getServerType
in class CM_Listener
protected boolean stopListener()
stopListener
in class CM_Listener
protected void listenerStopped()
listenerStopped
in class CM_Listener
public void entityStopped(Object obj)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.