Package com.github.twitch4j.common.pool
Class TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<C,X,Y,Z,B,C2 extends TwitchModuleConnectionPool<C,X,Y,Z,B>,B2 extends TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<C,X,Y,Z,B,C2,B2>>
java.lang.Object
com.github.twitch4j.common.pool.AbstractConnectionPool.AbstractConnectionPoolBuilder<C,C2,B>
com.github.twitch4j.common.pool.SubscriptionConnectionPool.SubscriptionConnectionPoolBuilder<C,X,Y,Z,C2,B2>
com.github.twitch4j.common.pool.TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<C,X,Y,Z,B,C2,B2>
public abstract static class TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<C,X,Y,Z,B,C2 extends TwitchModuleConnectionPool<C,X,Y,Z,B>,B2 extends TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<C,X,Y,Z,B,C2,B2>> extends SubscriptionConnectionPool.SubscriptionConnectionPoolBuilder<C,X,Y,Z,C2,B2>
-
Constructor Summary
Constructors Constructor Description TwitchModuleConnectionPoolBuilder() -
Method Summary
Modifier and Type Method Description B2advancedConfiguration(@NonNull java.util.function.Function<@NonNull B,@NonNull B> advancedConfiguration)abstract C2build()B2connectionEventManager(java.util.function.Supplier<com.github.philippheuer.events4j.core.EventManager> connectionEventManager)B2eventManager(com.github.philippheuer.events4j.core.EventManager eventManager)B2executor(@NonNull java.util.function.Supplier<java.util.concurrent.ScheduledThreadPoolExecutor> executor)B2proxyConfig(@NonNull java.util.function.Supplier<ProxyConfig> proxyConfig)protected abstract B2self()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.common.pool.SubscriptionConnectionPool.SubscriptionConnectionPoolBuilder
disposeUnusedConnections, maxSubscriptionsPerConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TwitchModuleConnectionPoolBuilder
public TwitchModuleConnectionPoolBuilder()
-
-
Method Details
-
self
-
build
-
eventManager
- Returns:
this.
-
connectionEventManager
public B2 connectionEventManager(java.util.function.Supplier<com.github.philippheuer.events4j.core.EventManager> connectionEventManager)- Returns:
this.
-
executor
public B2 executor(@NonNull @NonNull java.util.function.Supplier<java.util.concurrent.ScheduledThreadPoolExecutor> executor)- Returns:
this.
-
proxyConfig
- Returns:
this.
-
advancedConfiguration
public B2 advancedConfiguration(@NonNull @NonNull java.util.function.Function<@NonNull B,@NonNull B> advancedConfiguration)- Returns:
this.
-
toString
public java.lang.String toString()
-