Class TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C extends TwitchSingleUserEventSocketPool,B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C,B>>
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<TwitchEventSocket,EventSubSubscription,EventSubSubscription,Boolean,TwitchEventSocket.TwitchEventSocketBuilder,C,B>
com.github.twitch4j.eventsub.socket.TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C,B>
- Enclosing class:
- TwitchSingleUserEventSocketPool
public abstract static class TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C extends TwitchSingleUserEventSocketPool,B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C,B>>
extends TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,EventSubSubscription,EventSubSubscription,Boolean,TwitchEventSocket.TwitchEventSocketBuilder,C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe base url for websocket connections.abstract Cbuild()defaultToken(@Nullable com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultToken) The default credential (representing the single user) to create eventsub subscriptions with.helix(@Nullable TwitchHelix helix) TheTwitchHelixinstance for creating eventsub subscriptions in the official API.protected abstract Bself()toString()Methods inherited from class com.github.twitch4j.common.pool.TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder
advancedConfiguration, connectionEventManager, eventManager, executor, proxyConfigMethods inherited from class com.github.twitch4j.common.pool.SubscriptionConnectionPool.SubscriptionConnectionPoolBuilder
disposeUnusedConnections, maxSubscriptionsPerConnection
-
Constructor Details
-
TwitchSingleUserEventSocketPoolBuilder
public TwitchSingleUserEventSocketPoolBuilder()
-
-
Method Details
-
baseUrl
The base url for websocket connections.- Returns:
this.- See Also:
-
helix
TheTwitchHelixinstance for creating eventsub subscriptions in the official API.- Returns:
this.
-
defaultToken
public B defaultToken(@Nullable @Nullable com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultToken) The default credential (representing the single user) to create eventsub subscriptions with.- Returns:
this.
-
self
- Specified by:
selfin classTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,EventSubSubscription, EventSubSubscription, Boolean, TwitchEventSocket.TwitchEventSocketBuilder, C extends TwitchSingleUserEventSocketPool, B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C, B>>
-
build
- Specified by:
buildin classTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,EventSubSubscription, EventSubSubscription, Boolean, TwitchEventSocket.TwitchEventSocketBuilder, C extends TwitchSingleUserEventSocketPool, B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C, B>>
-
toString
- Overrides:
toStringin classTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,EventSubSubscription, EventSubSubscription, Boolean, TwitchEventSocket.TwitchEventSocketBuilder, C extends TwitchSingleUserEventSocketPool, B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C, B>>
-