ShardingOptions class
Options to customize how nyxx_sharding behaves.
Constructors
Properties
- autoScale → bool
-
Whether to automatically restart processes when they grow beyond a certain threshold with updated shard and process counts.
final
- autoScaleInterval → Duration
-
The interval at which to check if processes should be restarted, if autoScale is
true
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- redirectOutput → bool
-
Whether to redirect the stdout and stderr of the spawned processes to this processe's stdout and stderr.
final
- respawnProcesses → bool
-
Whether to respawn processes upon exiting if the exit code is non-zero.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutSpawn → bool
-
Whether to wait after spawning a process for enough time for all shards to initialise before spawning the next process.
final
- useImpreciseGuildCount → bool
-
Whether to get the guild count using an approximation rather than an exact number.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited