public interface LavaHttpManager
Modifier and Type | Method and Description |
---|---|
LavaClient |
getClient()
Fetches the
LavaClient associated with this manager. |
void |
resolveTracks(java.lang.String identifier,
java.util.function.Consumer<AudioWrapper> callback)
Sends a request to the
AudioNode with the least load on it to resolve track(s) based on the provided identifier. |
void |
shutdown()
Shuts down the internal HTTP Client used to make requests in the first place.
|
@Nonnull LavaClient getClient()
LavaClient
associated with this manager.LavaClient
attached to this manager.void resolveTracks(@Nonnull java.lang.String identifier, @Nonnull java.util.function.Consumer<AudioWrapper> callback)
AudioNode
with the least load on it to resolve track(s) based on the provided identifier.identifier
- The not-null identifier from which the tracks are derived.callback
- The not-null callback to use, accepting a not-null AudioWrapper
object.java.lang.NullPointerException
- If the provided identifier or callback are null
.void shutdown()
This is called by the LavaClient.shutdown()
method too.
java.lang.IllegalStateException
- If this manager has already been shut-down.