public class Context
extends java.lang.Object
详情见: https://redkale.org
限定符和类型 | 类和说明 |
---|---|
static class |
Context.ContextConfig |
限定符和类型 | 字段和说明 |
---|---|
protected java.net.InetSocketAddress |
address |
protected int |
aliveTimeoutSeconds |
protected BsonFactory |
bsonFactory |
protected int |
bufferCapacity |
protected java.nio.charset.Charset |
charset |
protected java.util.concurrent.ThreadPoolExecutor |
executor |
protected JsonFactory |
jsonFactory |
protected java.util.logging.Logger |
logger |
protected int |
maxbody |
protected int |
maxconns |
protected PrepareServlet |
prepare |
protected int |
readTimeoutSeconds |
protected ResourceFactory |
resourceFactory |
protected long |
serverStartTime |
protected javax.net.ssl.SSLContext |
sslContext |
protected int |
writeTimeoutSeconds |
构造器和说明 |
---|
Context(Context.ContextConfig config) |
Context(long serverStartTime,
java.util.logging.Logger logger,
java.util.concurrent.ThreadPoolExecutor executor,
javax.net.ssl.SSLContext sslContext,
int bufferCapacity,
int maxconns,
int maxbody,
java.nio.charset.Charset charset,
java.net.InetSocketAddress address,
ResourceFactory resourceFactory,
PrepareServlet prepare,
int aliveTimeoutSeconds,
int readTimeoutSeconds,
int writeTimeoutSeconds) |
限定符和类型 | 方法和说明 |
---|---|
int |
getAliveTimeoutSeconds() |
BsonConvert |
getBsonConvert() |
int |
getBufferCapacity() |
java.nio.charset.Charset |
getCharset() |
int |
getCorePoolSize() |
JsonConvert |
getJsonConvert() |
java.util.logging.Logger |
getLogger() |
int |
getMaxbody() |
int |
getMaxconns() |
int |
getReadTimeoutSeconds() |
ResourceFactory |
getResourceFactory() |
java.net.InetSocketAddress |
getServerAddress() |
long |
getServerStartTime() |
javax.net.ssl.SSLContext |
getSSLContext() |
java.util.concurrent.ThreadFactory |
getThreadFactory() |
int |
getWriteTimeoutSeconds() |
void |
runAsync(java.lang.Runnable r) |
java.util.concurrent.Future<?> |
submitAsync(java.lang.Runnable r) |
protected final long serverStartTime
protected final java.util.concurrent.ThreadPoolExecutor executor
protected final javax.net.ssl.SSLContext sslContext
protected final int bufferCapacity
protected final PrepareServlet prepare
protected final java.util.logging.Logger logger
protected final BsonFactory bsonFactory
protected final JsonFactory jsonFactory
protected final ResourceFactory resourceFactory
protected int maxconns
protected int maxbody
protected int aliveTimeoutSeconds
protected int readTimeoutSeconds
protected int writeTimeoutSeconds
protected java.net.InetSocketAddress address
protected java.nio.charset.Charset charset
public Context(Context.ContextConfig config)
public Context(long serverStartTime, java.util.logging.Logger logger, java.util.concurrent.ThreadPoolExecutor executor, javax.net.ssl.SSLContext sslContext, int bufferCapacity, int maxconns, int maxbody, java.nio.charset.Charset charset, java.net.InetSocketAddress address, ResourceFactory resourceFactory, PrepareServlet prepare, int aliveTimeoutSeconds, int readTimeoutSeconds, int writeTimeoutSeconds)
public ResourceFactory getResourceFactory()
public javax.net.ssl.SSLContext getSSLContext()
public int getMaxconns()
public int getMaxbody()
public java.net.InetSocketAddress getServerAddress()
public long getServerStartTime()
public java.nio.charset.Charset getCharset()
public java.util.concurrent.Future<?> submitAsync(java.lang.Runnable r)
public void runAsync(java.lang.Runnable r)
public int getCorePoolSize()
public java.util.concurrent.ThreadFactory getThreadFactory()
public int getBufferCapacity()
public java.util.logging.Logger getLogger()
public int getAliveTimeoutSeconds()
public int getReadTimeoutSeconds()
public int getWriteTimeoutSeconds()
public JsonConvert getJsonConvert()
public BsonConvert getBsonConvert()