public final class ServerSocketSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
DEF_BOOL |
static int |
DEFAULT_BACKLOG |
protected static byte |
FALSE |
protected static byte |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(ServerSocketChannel channel) |
static ServerSocketSettings |
create(int backlog) |
int |
getBacklog() |
MemSize |
getReceiveBufferSize() |
boolean |
getReuseAddress() |
boolean |
hasReceiveBufferSize() |
boolean |
hasReuseAddress() |
ServerSocketSettings |
withBacklog(int backlog) |
ServerSocketSettings |
withReceiveBufferSize(MemSize receiveBufferSize) |
ServerSocketSettings |
withReuseAddress(boolean reuseAddress) |
public static final int DEFAULT_BACKLOG
protected static final byte DEF_BOOL
protected static final byte TRUE
protected static final byte FALSE
public static ServerSocketSettings create(int backlog)
public ServerSocketSettings withBacklog(int backlog)
public ServerSocketSettings withReceiveBufferSize(MemSize receiveBufferSize)
public ServerSocketSettings withReuseAddress(boolean reuseAddress)
public void applySettings(ServerSocketChannel channel) throws IOException
IOExceptionpublic int getBacklog()
public boolean hasReceiveBufferSize()
public boolean hasReuseAddress()
public boolean getReuseAddress()
Copyright © 2019. All rights reserved.