org.redkale.net.sncp

## 类 SncpServer

- java.lang.Object
- - org.redkale.net.Server<DLong,SncpContext,SncpRequest,SncpResponse,SncpServlet>
  - - org.redkale.net.sncp.SncpServer

-     public final class SncpServer
      extends Server<DLong,SncpContext,SncpRequest,SncpResponse,SncpServlet>

  Service Node Communicate Protocol

  详情见: https://redkale.org

- - ### 字段概要

    - ### 从类继承的字段 org.redkale.net.Server

      `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> void` | `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)`

    - ### 从类继承的方法 org.redkale.net.Server

      `addServlet, createFormat, destroy, getContext, getLogger, getName, getPrepareServlet, getProtocol, getSocketAddress, loadLib, shutdown, start`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SncpServer

          public SncpServer()

    - #### SncpServer

          public SncpServer(long serverStartTime,
                            WatchFactory watch)

  - ### 方法详细资料

    - #### init

          public void init(AnyValue config)
                    throws java.lang.Exception

      覆盖:
        `init` 在类中 `Server<DLong,SncpContext,SncpRequest,SncpResponse,SncpServlet>`
      抛出:
        `java.lang.Exception`

    - #### addSncpServlet

          public void addSncpServlet(ServiceWrapper entry)

    - #### addSncpServlet

          public <T extends Service> void addSncpServlet(java.lang.Class<T> serviceType,
                                                         java.lang.String name,
                                                         T service,
                                                         AnyValue conf)

    - #### getSncpServlets

          public java.util.List<SncpServlet> getSncpServlets()

    - #### createContext

          protected SncpContext createContext()

      指定者:
        `createContext` 在类中 `Server<DLong,SncpContext,SncpRequest,SncpResponse,SncpServlet>`