LoadBalancingConfig

data class LoadBalancingConfig(val penaltyProviders: MutableList<PenaltyProvider> = mutableListOf()) : MutableList<PenaltyProvider> , LavaKordOptions.LoadBalancingConfig

Mutable implementation of LavaKordOptions.LoadBalancingConfig.

Constructors

Link copied to clipboard
constructor(penaltyProviders: MutableList<PenaltyProvider> = mutableListOf())

Properties

Link copied to clipboard
open override val penaltyProviders: MutableList<PenaltyProvider>

list of penalty providers

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: PenaltyProvider): Boolean
open override fun add(index: Int, element: PenaltyProvider)
Link copied to clipboard
open override fun addAll(elements: Collection<PenaltyProvider>): Boolean
open override fun addAll(index: Int, elements: Collection<PenaltyProvider>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: PenaltyProvider): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<PenaltyProvider>): Boolean
Link copied to clipboard
open operator override fun get(index: Int): PenaltyProvider
Link copied to clipboard
open override fun indexOf(element: PenaltyProvider): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<PenaltyProvider>
Link copied to clipboard
open override fun lastIndexOf(element: PenaltyProvider): Int
Link copied to clipboard
open override fun listIterator(): MutableListIterator<PenaltyProvider>
open override fun listIterator(index: Int): MutableListIterator<PenaltyProvider>
Link copied to clipboard
suspend fun List<Track>.mapToTrack(): List<LavaplayerTrack>

Maps a List of Tracks to a List of LavaplayerTracks.

Link copied to clipboard
open override fun remove(element: PenaltyProvider): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<PenaltyProvider>): Boolean
Link copied to clipboard
open override fun removeAt(index: Int): PenaltyProvider
Link copied to clipboard
open override fun retainAll(elements: Collection<PenaltyProvider>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: PenaltyProvider): PenaltyProvider
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<PenaltyProvider>
Link copied to clipboard
operator fun PenaltyProvider.unaryPlus()

Adds a new PenaltyProvider.