@Inherit(options={FailsafeOptions.class,ConnectOptions.class}) public final class SourceRconOptions extends AbstractOptions
OptionBuilder
,
Options
,
SourceRconClient
Modifier and Type | Field and Description |
---|---|
static Option<Integer> |
CLOSE_INACTIVE_CHANNELS
Automatically close inactive channels/connections once it has reached the threshold value (value is in seconds).
|
static Option<CredentialsStore> |
CREDENTIALS_STORE
The
CredentialsStore to be used by the rcon authentication module. |
static Option<Integer> |
INACTIVE_CHECK_INTERVAL
Number of seconds to check for inactive
Channel 's/connections (Unit: Seconds, Default Value: 1 sec) |
static Option<Boolean> |
REAUTHENTICATE
Automatically send a re-authentication request if the connection is no longer valid.
|
static Option<Boolean> |
STRICT_MODE
Enable strict mode.
|
static Option<Boolean> |
USE_TERMINATOR_PACKET
Enable the use of "terminating packets" (Enabled by default).
|
Constructor and Description |
---|
SourceRconOptions() |
Modifier and Type | Method and Description |
---|---|
static OptionBuilder<SourceRconOptions> |
builder()
Create a new
OptionBuilder for SourceRconOptions |
contains, get, get, get, getOrDefault, isLocked, iterator, put, put, putIfAbsent, remove, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getOrDefault, getOrDefault, isEmpty
forEach, spliterator
public static final Option<Boolean> USE_TERMINATOR_PACKET
Enable the use of "terminating packets" (Enabled by default).
Simply put, a terminator packet allows the library to accurately determine the end of a response ensuring the integrity of the data received from the game server. If disabled, a special heuristics will be performed to determine the end of response but this is not always accurate in some cases and its possible that you won't be receiving the entire response from the server (especially when dealing with large response packets).
If enabled, an empty rcon response packet is sent after every command. The game server will then mirror it back
at the end of the response, followed by an additional terminator packet with a terminating byte equals to 1 (0x01). This is mostly useful for large response packets that are sent in smaller chunks by the server, which would then
have to be re-assembled by the library back into a single SourceRconPacket
instance.
public static final Option<Boolean> STRICT_MODE
false
the library will attempt to recover from malformed/corrupted packets.
Please note that disabling this option does not always guarantee that the decode process would succeed.public static final Option<Boolean> REAUTHENTICATE
SourceRconClient.authenticate(InetSocketAddress, byte[])
).public static final Option<CredentialsStore> CREDENTIALS_STORE
CredentialsStore
to be used by the rcon authentication module. Default is InMemoryCredentialsStore
.Credentials
,
CredentialsStore
,
SourceRconMessenger
public static final Option<Integer> CLOSE_INACTIVE_CHANNELS
public static final Option<Integer> INACTIVE_CHECK_INTERVAL
Channel
's/connections (Unit: Seconds, Default Value: 1 sec)CLOSE_INACTIVE_CHANNELS
public static OptionBuilder<SourceRconOptions> builder()
Create a new OptionBuilder
for SourceRconOptions
OptionBuilder
objectCopyright © 2016–2024. All rights reserved.