public class ServerOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
IO_THREADS |
static int |
WORKER_THREADS |
Constructor and Description |
---|
ServerOptions() |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSize() |
int |
getIoThreads() |
int |
getIoThreads(int defaultIoThreads) |
int |
getMaxRequestSize() |
int |
getPort() |
String |
getServer() |
Boolean |
getSingleLoop() |
int |
getWorkerThreads() |
int |
getWorkerThreads(int defaultWorkerThreads) |
boolean |
isDefaultHeaders() |
boolean |
isGzip() |
ServerOptions |
setBufferSize(int bufferSize) |
ServerOptions |
setDefaultHeaders(boolean defaultHeaders) |
ServerOptions |
setGzip(boolean gzip) |
ServerOptions |
setIoThreads(int ioThreads) |
ServerOptions |
setMaxRequestSize(int maxRequestSize) |
ServerOptions |
setPort(int port) |
ServerOptions |
setServer(String server) |
ServerOptions |
setSingleLoop(boolean singleLoop) |
ServerOptions |
setWorkerThreads(int workerThreads) |
String |
toString() |
public static final int IO_THREADS
public static final int WORKER_THREADS
@Nonnull public ServerOptions setServer(@Nonnull String server)
public int getPort()
@Nonnull public ServerOptions setPort(int port)
public int getIoThreads()
public int getIoThreads(int defaultIoThreads)
@Nonnull public ServerOptions setIoThreads(int ioThreads)
public int getWorkerThreads()
public int getWorkerThreads(int defaultWorkerThreads)
@Nonnull public ServerOptions setWorkerThreads(int workerThreads)
public boolean isGzip()
@Nonnull public ServerOptions setGzip(boolean gzip)
public boolean isDefaultHeaders()
@Nonnull public ServerOptions setDefaultHeaders(boolean defaultHeaders)
public int getBufferSize()
@Nonnull public ServerOptions setBufferSize(int bufferSize)
public int getMaxRequestSize()
@Nonnull public ServerOptions setMaxRequestSize(int maxRequestSize)
@Nonnull public ServerOptions setSingleLoop(boolean singleLoop)
Copyright © 2019. All rights reserved.