Class TwitchEventSocket.TwitchEventSocketBuilder
java.lang.Object
com.github.twitch4j.eventsub.socket.TwitchEventSocket.TwitchEventSocketBuilder
- Enclosing class:
- TwitchEventSocket
-
Method Summary
Modifier and TypeMethodDescriptionapi
(@Nullable TwitchHelix api) avoidRetryFailedSubscription
(@Nullable Boolean avoidRetryFailedSubscription) backoffStrategy
(@Nullable IBackoffStrategy backoffStrategy) build()
clientSecret
(@Nullable String clientSecret) connection
(@Nullable WebsocketConnection connection) defaultToken
(@Nullable com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultToken) eventManager
(@Nullable com.github.philippheuer.events4j.core.EventManager eventManager) proxyConfig
(@Nullable ProxyConfig proxyConfig) taskExecutor
(@Nullable ScheduledExecutorService taskExecutor) toString()
-
Method Details
-
baseUrl
- Returns:
this
.
-
url
- Returns:
this
.
-
clientId
- Returns:
this
.
-
clientSecret
public TwitchEventSocket.TwitchEventSocketBuilder clientSecret(@Nullable @Nullable String clientSecret) - Returns:
this
.
-
eventManager
public TwitchEventSocket.TwitchEventSocketBuilder eventManager(@Nullable @Nullable com.github.philippheuer.events4j.core.EventManager eventManager) - Returns:
this
.
-
taskExecutor
public TwitchEventSocket.TwitchEventSocketBuilder taskExecutor(@Nullable @Nullable ScheduledExecutorService taskExecutor) - Returns:
this
.
-
proxyConfig
public TwitchEventSocket.TwitchEventSocketBuilder proxyConfig(@Nullable @Nullable ProxyConfig proxyConfig) - Returns:
this
.
-
connection
public TwitchEventSocket.TwitchEventSocketBuilder connection(@Nullable @Nullable WebsocketConnection connection) - Returns:
this
.
-
api
- Returns:
this
.
-
defaultToken
public TwitchEventSocket.TwitchEventSocketBuilder defaultToken(@Nullable @Nullable com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultToken) - Returns:
this
.
-
backoffStrategy
public TwitchEventSocket.TwitchEventSocketBuilder backoffStrategy(@Nullable @Nullable IBackoffStrategy backoffStrategy) - Returns:
this
.
-
avoidRetryFailedSubscription
public TwitchEventSocket.TwitchEventSocketBuilder avoidRetryFailedSubscription(@Nullable @Nullable Boolean avoidRetryFailedSubscription) - Returns:
this
.
-
build
-
toString
-