| Modifier and Type | Field and Description |
|---|---|
| private ByteBufFormat | |
| public static final ByteBufFormat | DEFAULT_LOG_ACTIVITY_FORMAT
The default logActivity is ByteBufFormat.SIMPLE |
| public static final boolean | DEFAULT_LOG_ENABLED
The default log enabled = false |
| public static final int | DEFAULT_RECEIVE_BUFFER_SIZE
The default value of TCP receive buffer size |
| public static final boolean | DEFAULT_REUSE_ADDRESS
The default value of reuse address |
| public static final boolean | DEFAULT_REUSE_PORT
The default value of reuse port |
| public static final int | DEFAULT_SEND_BUFFER_SIZE
The default value of TCP send buffer size |
| public static final int | DEFAULT_TRAFFIC_CLASS
The default value of traffic class |
| private boolean | |
| private int | |
| private boolean | |
| private boolean | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | NetworkOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Constructor from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBufFormat | |
| public boolean | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlythe format to use activityLogDataFormat)Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlytrue for logging the network activity logActivity)Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlythe buffers size, in bytes receiveBufferSize)Set the TCP receive buffer size |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlythe value of reuse address reuseAddress)Set the value of reuse address |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlythe value of reuse port reusePort)Set the value of reuse port. |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlythe buffers size, in bytes sendBufferSize)Set the TCP send buffer size |
| public NetworkOptions | Returns: a reference to this, so the API can be used fluentlythe value of traffic class trafficClass)Set the value of traffic class |
| public JsonObject | Returns: the JSON
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Convert to JSON |
| activityLogDataFormat | back to summary |
|---|---|
| private ByteBufFormat activityLogDataFormat | |
| DEFAULT_LOG_ACTIVITY_FORMAT | back to summary |
|---|---|
| public static final ByteBufFormat DEFAULT_LOG_ACTIVITY_FORMAT The default logActivity is ByteBufFormat.SIMPLE | |
| DEFAULT_LOG_ENABLED | back to summary |
|---|---|
| public static final boolean DEFAULT_LOG_ENABLED The default log enabled = false | |
| DEFAULT_RECEIVE_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_RECEIVE_BUFFER_SIZE The default value of TCP receive buffer size | |
| DEFAULT_REUSE_ADDRESS | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_ADDRESS The default value of reuse address | |
| DEFAULT_REUSE_PORT | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_PORT The default value of reuse port | |
| DEFAULT_SEND_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_SEND_BUFFER_SIZE The default value of TCP send buffer size | |
| DEFAULT_TRAFFIC_CLASS | back to summary |
|---|---|
| public static final int DEFAULT_TRAFFIC_CLASS The default value of traffic class | |
| logActivity | back to summary |
|---|---|
| private boolean logActivity | |
| receiveBufferSize | back to summary |
|---|---|
| private int receiveBufferSize | |
| reuseAddress | back to summary |
|---|---|
| private boolean reuseAddress | |
| reusePort | back to summary |
|---|---|
| private boolean reusePort | |
| sendBufferSize | back to summary |
|---|---|
| private int sendBufferSize | |
| trafficClass | back to summary |
|---|---|
| private int trafficClass | |
| NetworkOptions | back to summary |
|---|---|
| public NetworkOptions() Default constructor | |
| NetworkOptions | back to summary |
|---|---|
| public NetworkOptions(NetworkOptions other) Copy constructor
| |
| NetworkOptions | back to summary |
|---|---|
| public NetworkOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Constructor from JSON
| |
| getActivityLogDataFormat | back to summary |
|---|---|
public ByteBufFormat getActivityLogDataFormat()
| |
| getLogActivity | back to summary |
|---|---|
public boolean getLogActivity()
| |
| getReceiveBufferSize | back to summary |
|---|---|
| public int getReceiveBufferSize() Return the TCP receive buffer size, in bytes
| |
| getSendBufferSize | back to summary |
|---|---|
| public int getSendBufferSize() Return the TCP send buffer size, in bytes.
| |
| getTrafficClass | back to summary |
|---|---|
public int getTrafficClass()
| |
| isReuseAddress | back to summary |
|---|---|
public boolean isReuseAddress()
| |
| isReusePort | back to summary |
|---|---|
public boolean isReusePort()
| |
| setActivityLogDataFormat | back to summary |
|---|---|
| public NetworkOptions setActivityLogDataFormat(ByteBufFormat activityLogDataFormat) Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.
| |
| setLogActivity | back to summary |
|---|---|
| public NetworkOptions setLogActivity(boolean logActivity) Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
| |
| setReceiveBufferSize | back to summary |
|---|---|
| public NetworkOptions setReceiveBufferSize(int receiveBufferSize) Set the TCP receive buffer size
| |
| setReuseAddress | back to summary |
|---|---|
| public NetworkOptions setReuseAddress(boolean reuseAddress) Set the value of reuse address
| |
| setReusePort | back to summary |
|---|---|
| public NetworkOptions setReusePort(boolean reusePort) Set the value of reuse port. This is only supported by native transports.
| |
| setSendBufferSize | back to summary |
|---|---|
| public NetworkOptions setSendBufferSize(int sendBufferSize) Set the TCP send buffer size
| |
| setTrafficClass | back to summary |
|---|---|
| public NetworkOptions setTrafficClass(int trafficClass) Set the value of traffic class
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. Convert to JSON
| |