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
-
Method Summary
Modifier and TypeMethodDescriptionThe base url for websocket connections.abstract C
build()
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) TheTwitchHelix
instance for creating eventsub subscriptions in the official API.protected abstract B
self()
toString()
Methods inherited from class com.github.twitch4j.common.pool.TwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder
advancedConfiguration, connectionEventManager, eventManager, executor, proxyConfig
Methods 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
TheTwitchHelix
instance 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:
self
in classTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,
EventSubSubscription, EventSubSubscription, Boolean, TwitchEventSocket.TwitchEventSocketBuilder, C extends TwitchSingleUserEventSocketPool, B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C, B>>
-
build
- Specified by:
build
in classTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,
EventSubSubscription, EventSubSubscription, Boolean, TwitchEventSocket.TwitchEventSocketBuilder, C extends TwitchSingleUserEventSocketPool, B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C, B>>
-
toString
- Overrides:
toString
in classTwitchModuleConnectionPool.TwitchModuleConnectionPoolBuilder<TwitchEventSocket,
EventSubSubscription, EventSubSubscription, Boolean, TwitchEventSocket.TwitchEventSocketBuilder, C extends TwitchSingleUserEventSocketPool, B extends TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<C, B>>
-