Class TwitchPubSubConnectionPool

java.lang.Object
com.github.twitch4j.common.pool.AbstractConnectionPool<C>
com.github.twitch4j.common.pool.SubscriptionConnectionPool<C,​X,​Y,​Z>
com.github.twitch4j.common.pool.TwitchModuleConnectionPool<TwitchPubSub,​PubSubRequest,​PubSubSubscription,​java.lang.Boolean,​TwitchPubSubBuilder>
com.github.twitch4j.pubsub.TwitchPubSubConnectionPool
All Implemented Interfaces:
com.github.twitch4j.common.pool.TransactionalSubscriber<PubSubRequest,​PubSubSubscription,​java.lang.Boolean>, ITwitchPubSub, java.lang.AutoCloseable

public class TwitchPubSubConnectionPool
extends com.github.twitch4j.common.pool.TwitchModuleConnectionPool<TwitchPubSub,​PubSubRequest,​PubSubSubscription,​java.lang.Boolean,​TwitchPubSubBuilder>
implements ITwitchPubSub
A pool for PubSub connections to help navigate rate-limits.

Warning: Passing a ScheduledThreadPoolExecutor with too small corePoolSize can lead to connections in the pool not behaving properly. Not specifying an executor allows connections to create their own at will. If enough connections are made, this could pollute one's runtime environment.