## 类的使用
org.redkale.net.Response

- 使用Response的程序包
  程序包 | 说明
  --- | ---
  org.redkale.net | 网络TCP/UDP基础服务包
  org.redkale.net.http | HTTP协议包,提供HTTP协议服务器
  org.redkale.net.sncp | SNCP协议包,提供SNCP协议服务器

- - ### org.redkale.net中Response的使用

    类型参数类型为Response的org.redkale.net中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `PrepareServlet<K extends java.io.Serializable,C extends Context,R extends Request<C>,P extends Response<C,R>,S extends Servlet<C,R,P>>` 详情见: https://redkale.org
    `class` | `Server<K extends java.io.Serializable,C extends Context,R extends Request<C>,P extends Response<C,R>,S extends Servlet<C,R,P>>` 详情见: https://redkale.org
    `class` | `Servlet<C extends Context,R extends Request<C>,P extends Response<C,R>>` 详情见: https://redkale.org

    类型参数类型为Response的org.redkale.net中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected java.util.function.BiConsumer<R,Response<C,R>>` | Response.`recycleListener`
    `protected ObjectPool<Response>` | Context.`responsePool`

    类型变量类型为Response的org.redkale.net中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | Response.`setRecycleListener(java.util.function.BiConsumer<R,Response<C,R>> recycleListener)`

    类型变量类型为Response的org.redkale.net中的构造器参数
    构造器和说明
    `Context(long serverStartTime, java.util.logging.Logger logger, java.util.concurrent.ExecutorService executor, int bufferCapacity, ObjectPool<java.nio.ByteBuffer> bufferPool, ObjectPool<Response> responsePool, int maxbody, java.nio.charset.Charset charset, java.net.InetSocketAddress address, PrepareServlet prepare, WatchFactory watch, int readTimeoutSecond, int writeTimeoutSecond)`

  - ### org.redkale.net.http中Response的使用

    org.redkale.net.http中Response的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `HttpResponse` Http响应包 与javax.servlet.http.HttpServletResponse 基本类似。

    返回变量类型为Response的类型的org.redkale.net.http中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ObjectPool<Response>` | HttpResponse.`createPool(java.util.concurrent.atomic.AtomicLong creatCounter, java.util.concurrent.atomic.AtomicLong cycleCounter, int max, Creator<Response> creator)`
    `protected ObjectPool<Response>` | HttpContext.`getResponsePool()`

    类型变量类型为Response的org.redkale.net.http中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `static ObjectPool<Response>` | HttpResponse.`createPool(java.util.concurrent.atomic.AtomicLong creatCounter, java.util.concurrent.atomic.AtomicLong cycleCounter, int max, Creator<Response> creator)`

    类型变量类型为Response的org.redkale.net.http中的构造器参数
    构造器和说明
    `HttpContext(long serverStartTime, java.util.logging.Logger logger, java.util.concurrent.ExecutorService executor, int bufferCapacity, ObjectPool<java.nio.ByteBuffer> bufferPool, ObjectPool<Response> responsePool, int maxbody, java.nio.charset.Charset charset, java.net.InetSocketAddress address, PrepareServlet prepare, WatchFactory watch, int readTimeoutSecond, int writeTimeoutSecond)`

  - ### org.redkale.net.sncp中Response的使用

    org.redkale.net.sncp中Response的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `SncpResponse` 详情见: https://redkale.org

    返回变量类型为Response的类型的org.redkale.net.sncp中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ObjectPool<Response>` | SncpResponse.`createPool(java.util.concurrent.atomic.AtomicLong creatCounter, java.util.concurrent.atomic.AtomicLong cycleCounter, int max, Creator<Response> creator)`

    类型变量类型为Response的org.redkale.net.sncp中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `static ObjectPool<Response>` | SncpResponse.`createPool(java.util.concurrent.atomic.AtomicLong creatCounter, java.util.concurrent.atomic.AtomicLong cycleCounter, int max, Creator<Response> creator)`

    类型变量类型为Response的org.redkale.net.sncp中的构造器参数
    构造器和说明
    `SncpContext(long serverStartTime, java.util.logging.Logger logger, java.util.concurrent.ExecutorService executor, int bufferCapacity, ObjectPool<java.nio.ByteBuffer> bufferPool, ObjectPool<Response> responsePool, int maxbody, java.nio.charset.Charset charset, java.net.InetSocketAddress address, PrepareServlet prepare, WatchFactory watch, int readTimeoutSecond, int writeTimeoutSecond)`