Class TwitchEventSocketPool.TwitchEventSocketPoolBuilder
java.lang.Object
com.github.twitch4j.eventsub.socket.TwitchEventSocketPool.TwitchEventSocketPoolBuilder
- Enclosing class:
- TwitchEventSocketPool
-
Method Summary
Modifier and TypeMethodDescriptionadvancedConfiguration
(UnaryOperator<TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<?, ?>> advancedConfiguration) Further configuration that should be applied to the builder when creating new EventSocket (single-user) pools.The base url for websocket connections.build()
eventManager
(com.github.philippheuer.events4j.core.EventManager eventManager) The defaultEventManager
for this connection pool, if specified.executor
(@Nullable ScheduledThreadPoolExecutor executor) TheScheduledThreadPoolExecutor
to be used by connections in this pool, if specified.fallbackToken
(@Nullable com.github.philippheuer.credentialmanager.domain.OAuth2Credential fallbackToken) The defaultOAuth2Credential
to use when initially creating an EventSub subscription.helix
(@Nullable TwitchHelix helix) TheTwitchHelix
instance for creating eventsub subscriptions in the official API.identityProvider
(@NotNull TwitchIdentityProvider identityProvider) TheTwitchIdentityProvider
to enrich credentials.maxSubscriptionsPerUser
(int maxSubscriptionsPerUser) The maximum number of eventsub subscriptions that a single user_id can have.toString()
-
Method Details
-
eventManager
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder eventManager(com.github.philippheuer.events4j.core.EventManager eventManager) The defaultEventManager
for this connection pool, if specified.- Returns:
this
.
-
executor
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder executor(@Nullable @Nullable ScheduledThreadPoolExecutor executor) TheScheduledThreadPoolExecutor
to be used by connections in this pool, if specified.- Returns:
this
.
-
identityProvider
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder identityProvider(@NotNull @NotNull TwitchIdentityProvider identityProvider) TheTwitchIdentityProvider
to enrich credentials.- Returns:
this
.
-
fallbackToken
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder fallbackToken(@Nullable @Nullable com.github.philippheuer.credentialmanager.domain.OAuth2Credential fallbackToken) The defaultOAuth2Credential
to use when initially creating an EventSub subscription.- Returns:
this
.
-
baseUrl
The base url for websocket connections.- Returns:
this
.- See Also:
-
helix
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder helix(@Nullable @Nullable TwitchHelix helix) TheTwitchHelix
instance for creating eventsub subscriptions in the official API.- Returns:
this
.
-
maxSubscriptionsPerUser
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder maxSubscriptionsPerUser(int maxSubscriptionsPerUser) The maximum number of eventsub subscriptions that a single user_id can have.- Returns:
this
.
-
advancedConfiguration
public TwitchEventSocketPool.TwitchEventSocketPoolBuilder advancedConfiguration(UnaryOperator<TwitchSingleUserEventSocketPool.TwitchSingleUserEventSocketPoolBuilder<?, ?>> advancedConfiguration) Further configuration that should be applied to the builder when creating new EventSocket (single-user) pools.- Returns:
this
.
-
build
-
toString
-