ICluster class abstract

Constructors

ICluster()

Properties

bestNode INode
Get the best available node, it is recommended to use getOrCreatePlayerNode instead as this won't create the player itself if it doesn't exists
no setter
client → INyxx
A reference to the client
no setter
clientId → Snowflake
The client id provided to lavalink;
no setter
connectedNodes UnmodifiableMapView<int, INode>
Returns a map with the nodes connected to lavalink cluster
no setter
disconnectedNodes UnmodifiableMapView<int, INode>
Returns a map with the nodes that are actually disconnected from lavalink
no setter
eventDispatcher IEventDispatcher
Dispatcher of all lavalink events
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addNode(NodeOptions options) Future<void>
Adds and initializes a node
dispose() Future<void>
Perform cleanup
inherited
getDisconnectedNode(int nodeId) INode?
Attempts to retrieve a node disconnected from lavalink by its id, this method does not work with nodes that have exceeded the maximum reconnect attempts as those get removed from cluster
getOrCreatePlayerNode(Snowflake guildId) INode
Attempts to get the node containing a player for a specific guild id
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

Static Methods

createCluster(INyxxWebsocket client, Snowflake clientId) ICluster