@Configurable public class ServerConfig extends java.lang.Object
Constructor and Description |
---|
ServerConfig(ServletContainerConfig config)
Creates a new servlet server.
|
Modifier and Type | Method and Description |
---|---|
void |
addBuilderProgram(ConfigProgram program) |
void |
setMemoryFreeMin(Bytes min)
Sets the minimum free memory after a GC
|
void |
setPermGenFreeMin(Bytes min)
Sets the minimum free memory after a GC
|
void |
setSendfileEnable(boolean isEnable) |
void |
setSendfileMinLength(Bytes bytes) |
void |
setShutdownWaitMax(Period waitTime)
Sets the max wait time for shutdown.
|
void |
setThreadExecutorTaskMax(int max)
Sets the maximum executor (background) thread.
|
void |
setThreadMax(int max)
Sets the maximum thread-based keepalive
|
public ServerConfig(ServletContainerConfig config)
@Configurable public void setMemoryFreeMin(Bytes min)
@Configurable public void setPermGenFreeMin(Bytes min)
@Configurable public void setShutdownWaitMax(Period waitTime)
@Configurable public void setThreadMax(int max)
@Configurable public void setThreadExecutorTaskMax(int max)
@Configurable public void setSendfileEnable(boolean isEnable)
@Configurable public void setSendfileMinLength(Bytes bytes)
public void addBuilderProgram(ConfigProgram program)