public final class SncpServer extends Server<DLong,SncpContext,SncpRequest,SncpResponse,SncpServlet>
详情见: http://redkale.org
address, backlog, bufferCapacity, bufferPoolSize, charset, config, context, executor, logger, maxbody, name, prepare, protocol, readTimeoutSecond, RESNAME_SERVER_ROOT, responsePoolSize, serverChannel, serverStartTime, threads, watch, writeTimeoutSecond| 构造器和说明 |
|---|
SncpServer() |
SncpServer(long serverStartTime,
WatchFactory watch) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Service> |
addSncpServlet(java.lang.Class<T> serviceType,
java.lang.String name,
T service,
AnyValue conf) |
void |
addSncpServlet(ServiceWrapper entry) |
protected SncpContext |
createContext() |
java.util.List<SncpServlet> |
getSncpServlets() |
void |
init(AnyValue config) |
addServlet, createFormat, destroy, getLogger, getName, getPrepareServlet, getProtocol, getSocketAddress, loadLib, shutdown, startpublic SncpServer()
public SncpServer(long serverStartTime,
WatchFactory watch)
public void init(AnyValue config) throws java.lang.Exception
init 在类中 Server<DLong,SncpContext,SncpRequest,SncpResponse,SncpServlet>java.lang.Exceptionpublic void addSncpServlet(ServiceWrapper entry)
public <T extends Service> void addSncpServlet(java.lang.Class<T> serviceType, java.lang.String name, T service, AnyValue conf)
public java.util.List<SncpServlet> getSncpServlets()
protected SncpContext createContext()