Package com.github.twitch4j.chat
Klasse TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C extends TwitchChatConnectionPool,B extends TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C,B>>
java.lang.Object
com.github.twitch4j.common.pool.AbstractConnectionPool.AbstractConnectionPoolBuilder<TwitchChat,C,B>
com.github.twitch4j.common.pool.SubscriptionConnectionPool.SubscriptionConnectionPoolBuilder<TwitchChat,String,String,Boolean,C,B>
com.github.twitch4j.common.pool.TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchChat,String,String,Boolean,TwitchChatBuilder,C,B>
com.github.twitch4j.chat.TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C,B>
- Umschließende Klasse:
TwitchChatConnectionPool
public abstract static class TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C extends TwitchChatConnectionPool,B extends TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C,B>>
extends TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchChat,String,String,Boolean,TwitchChatBuilder,C,B>
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungauthRateLimit(Bandwidth authRateLimit) Custom RateLimit for AUTHautomaticallyPartOnBan(boolean automaticallyPartOnBan) Veraltet.use removeChannelOnJoinFailure via advancedConfiguration instead.abstract Cbuild()chatAccount(@NonNull Supplier<OAuth2Credential> chatAccount) Provides a chat account to be used when constructing a newTwitchChatinstance.chatRateLimit(Bandwidth chatRateLimit) Custom RateLimit for ChatMessagesconnectionBackoffStrategy(IBackoffStrategy connectionBackoffStrategy) WebSocket Connection Backoff StrategyjoinRateLimit(Bandwidth joinRateLimit) Custom RateLimit for JOIN/PARTperChannelRateLimit(Bandwidth perChannelRateLimit) Custom RateLimit for Messages per Channelprotected abstract Bself()toString()whisperRateLimit(Bandwidth[] whisperRateLimit) Custom RateLimit for WhispersVon Klasse geerbte Methoden com.github.twitch4j.common.pool.TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder
advancedConfiguration, connectionEventManager, eventManager, executor, proxyConfigVon Klasse geerbte Methoden com.github.twitch4j.common.pool.SubscriptionConnectionPool.SubscriptionConnectionPoolBuilder
disposeUnusedConnections, maxSubscriptionsPerConnection
-
Konstruktordetails
-
TwitchChatConnectionPoolBuilder
public TwitchChatConnectionPoolBuilder()
-
-
Methodendetails
-
chatAccount
Provides a chat account to be used when constructing a newTwitchChatinstance. By default, this yields null, which corresponds to an anonymous connection.- Gibt zurück:
this.
-
automaticallyPartOnBan
Veraltet.use removeChannelOnJoinFailure via advancedConfiguration instead.Whether chat connections should automatically part from channels they have been banned from. This is useful for reclaiming subscription headroom so a minimal number of chat instances are running. By default false so that a chat instance can (eventually) reconnect if a unban occurs.- Gibt zurück:
this.
-
chatRateLimit
Custom RateLimit for ChatMessages- Gibt zurück:
this.
-
whisperRateLimit
Custom RateLimit for Whispers- Gibt zurück:
this.
-
joinRateLimit
Custom RateLimit for JOIN/PART- Gibt zurück:
this.
-
authRateLimit
Custom RateLimit for AUTH- Gibt zurück:
this.
-
perChannelRateLimit
Custom RateLimit for Messages per ChannelFor example, this can restrict messages per channel at 100/30 (for a verified bot that has a global 7500/30 message limit).
- Gibt zurück:
this.
-
connectionBackoffStrategy
WebSocket Connection Backoff Strategy- Gibt zurück:
this.
-
self
- Angegeben von:
selfin KlasseTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchChat,String, String, Boolean, TwitchChatBuilder, C extends TwitchChatConnectionPool, B extends TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C, B>>
-
build
- Angegeben von:
buildin KlasseTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchChat,String, String, Boolean, TwitchChatBuilder, C extends TwitchChatConnectionPool, B extends TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C, B>>
-
toString
- Setzt außer Kraft:
toStringin KlasseTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchChat,String, String, Boolean, TwitchChatBuilder, C extends TwitchChatConnectionPool, B extends TwitchChatConnectionPool.TwitchChatConnectionPoolBuilder<C, B>>
-