public class Context
extends java.lang.Object
详情见: http://www.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) |
protected final long serverStartTime
protected final java.util.concurrent.ExecutorService executor
protected final int bufferCapacity
protected final ObjectPool<java.nio.ByteBuffer> bufferPool
protected final ObjectPool<Response> responsePool
protected final PrepareServlet prepare
protected final java.nio.charset.Charset charset
protected final int maxbody
protected final int readTimeoutSecond
protected final int writeTimeoutSecond
protected final java.util.logging.Logger logger
protected final BsonFactory bsonFactory
protected final JsonFactory jsonFactory
protected final WatchFactory watch
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)
public int getMaxbody()
public java.net.InetSocketAddress getServerAddress()
public long getServerStartTime()
public java.nio.charset.Charset getCharset()
public void submit(java.lang.Runnable r)
public int getBufferCapacity()
public java.util.function.Supplier<java.nio.ByteBuffer> getBufferSupplier()
public java.nio.ByteBuffer pollBuffer()
public void offerBuffer(java.nio.ByteBuffer buffer)
public java.util.logging.Logger getLogger()
public int getReadTimeoutSecond()
public int getWriteTimeoutSecond()
public JsonConvert getJsonConvert()
public BsonConvert getBsonConvert()