org.redkale.net

## 类 Context

- java.lang.Object
- - org.redkale.net.Context

- 直接已知子类:
    HttpContext, SncpContext

      public class Context
      extends java.lang.Object

  详情见: https://redkale.org

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected BsonFactory` | `bsonFactory`
    `protected int` | `bufferCapacity`
    `protected ObjectPool<java.nio.ByteBuffer>` | `bufferPool`
    `protected java.nio.charset.Charset` | `charset`
    `protected java.util.concurrent.ExecutorService` | `executor`
    `protected JsonFactory` | `jsonFactory`
    `protected java.util.logging.Logger` | `logger`
    `protected int` | `maxbody`
    `protected PrepareServlet` | `prepare`
    `protected int` | `readTimeoutSecond`
    `protected ObjectPool<Response>` | `responsePool`
    `protected long` | `serverStartTime`
    `protected WatchFactory` | `watch`
    `protected int` | `writeTimeoutSecond`

  - ### 构造器概要

    构造器
    构造器和说明
    `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)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `BsonConvert` | `getBsonConvert()`
    `int` | `getBufferCapacity()`
    `java.util.function.Supplier<java.nio.ByteBuffer>` | `getBufferSupplier()`
    `java.nio.charset.Charset` | `getCharset()`
    `JsonConvert` | `getJsonConvert()`
    `java.util.logging.Logger` | `getLogger()`
    `int` | `getMaxbody()`
    `int` | `getReadTimeoutSecond()`
    `java.net.InetSocketAddress` | `getServerAddress()`
    `long` | `getServerStartTime()`
    `int` | `getWriteTimeoutSecond()`
    `void` | `offerBuffer(java.nio.ByteBuffer buffer)`
    `java.nio.ByteBuffer` | `pollBuffer()`
    `void` | `submit(java.lang.Runnable r)`

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

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

- - ### 字段详细资料

    - #### serverStartTime

          protected final long serverStartTime

    - #### executor

          protected final java.util.concurrent.ExecutorService executor

    - #### bufferCapacity

          protected final int bufferCapacity

    - #### bufferPool

          protected final ObjectPool<java.nio.ByteBuffer> bufferPool

    - #### responsePool

          protected final ObjectPool<Response> responsePool

    - #### prepare

          protected final PrepareServlet prepare

    - #### charset

          protected final java.nio.charset.Charset charset

    - #### maxbody

          protected final int maxbody

    - #### readTimeoutSecond

          protected final int readTimeoutSecond

    - #### writeTimeoutSecond

          protected final int writeTimeoutSecond

    - #### logger

          protected final java.util.logging.Logger logger

    - #### bsonFactory

          protected final BsonFactory bsonFactory

    - #### jsonFactory

          protected final JsonFactory jsonFactory

    - #### watch

          protected final WatchFactory watch

  - ### 构造器详细资料

    - #### Context

          public 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)

  - ### 方法详细资料

    - #### getMaxbody

          public int getMaxbody()

    - #### getServerAddress

          public java.net.InetSocketAddress getServerAddress()

    - #### getServerStartTime

          public long getServerStartTime()

    - #### getCharset

          public java.nio.charset.Charset getCharset()

    - #### submit

          public void submit(java.lang.Runnable r)

    - #### getBufferCapacity

          public int getBufferCapacity()

    - #### getBufferSupplier

          public java.util.function.Supplier<java.nio.ByteBuffer> getBufferSupplier()

    - #### pollBuffer

          public java.nio.ByteBuffer pollBuffer()

    - #### offerBuffer

          public void offerBuffer(java.nio.ByteBuffer buffer)

    - #### getLogger

          public java.util.logging.Logger getLogger()

    - #### getReadTimeoutSecond

          public int getReadTimeoutSecond()

    - #### getWriteTimeoutSecond

          public int getWriteTimeoutSecond()

    - #### getJsonConvert

          public JsonConvert getJsonConvert()

    - #### getBsonConvert

          public BsonConvert getBsonConvert()