Package com.github.twitch4j.pubsub
Class TwitchPubSubBuilder
java.lang.Object
com.github.twitch4j.pubsub.TwitchPubSubBuilder
public class TwitchPubSubBuilder
extends java.lang.Object
Twitch PubSub Builder
-
Method Summary
Modifier and Type Method Description TwitchPubSubbuild()Twitch PubSub Clientstatic TwitchPubSubBuilderbuilder()Initialize the builderjava.util.Collection<java.lang.String>getBotOwnerIds()User IDs of Bot Owners for applyingCommandPermission.OWNERjava.lang.Class<? extends com.github.philippheuer.events4j.api.service.IEventHandler>getDefaultEventHandler()EventManagercom.github.philippheuer.events4j.core.EventManagergetEventManager()Event Managercom.github.twitch4j.common.config.ProxyConfiggetProxyConfig()Proxy Configurationjava.util.concurrent.ScheduledThreadPoolExecutorgetScheduledThreadPoolExecutor()Scheduler Thread Pool ExecutorTwitchPubSubBuildersetBotOwnerIds(java.util.Collection<java.lang.String> botOwnerIds)User IDs of Bot Owners for applyingCommandPermission.OWNERTwitchPubSubBuilderwithBotOwnerId(java.lang.String userId)With a Bot Owner's User IDTwitchPubSubBuilderwithBotOwnerIds(java.util.Collection<java.lang.String> botOwnerIds)With multiple Bot Owner User IDsTwitchPubSubBuilderwithDefaultEventHandler(java.lang.Class<? extends com.github.philippheuer.events4j.api.service.IEventHandler> defaultEventHandler)EventManagerTwitchPubSubBuilderwithEventManager(com.github.philippheuer.events4j.core.EventManager eventManager)Event ManagerTwitchPubSubBuilderwithProxyConfig(com.github.twitch4j.common.config.ProxyConfig proxyConfig)Proxy ConfigurationTwitchPubSubBuilderwithScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor scheduledThreadPoolExecutor)Scheduler Thread Pool ExecutorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
builder
Initialize the builder- Returns:
- Twitch PubSub Builder
-
build
Twitch PubSub Client- Returns:
- TwitchPubSub
-
withBotOwnerId
With a Bot Owner's User ID- Parameters:
userId- the user id- Returns:
- TwitchPubSubBuilder
-
withBotOwnerIds
With multiple Bot Owner User IDs- Parameters:
botOwnerIds- the user ids- Returns:
- TwitchPubSubBuilder
-
getEventManager
public com.github.philippheuer.events4j.core.EventManager getEventManager()Event Manager -
getDefaultEventHandler
public java.lang.Class<? extends com.github.philippheuer.events4j.api.service.IEventHandler> getDefaultEventHandler()EventManager -
getScheduledThreadPoolExecutor
public java.util.concurrent.ScheduledThreadPoolExecutor getScheduledThreadPoolExecutor()Scheduler Thread Pool Executor -
getProxyConfig
public com.github.twitch4j.common.config.ProxyConfig getProxyConfig()Proxy Configuration -
getBotOwnerIds
public java.util.Collection<java.lang.String> getBotOwnerIds()User IDs of Bot Owners for applyingCommandPermission.OWNER -
withEventManager
public TwitchPubSubBuilder withEventManager(com.github.philippheuer.events4j.core.EventManager eventManager)Event Manager- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDefaultEventHandler
public TwitchPubSubBuilder withDefaultEventHandler(java.lang.Class<? extends com.github.philippheuer.events4j.api.service.IEventHandler> defaultEventHandler)EventManager- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withScheduledThreadPoolExecutor
public TwitchPubSubBuilder withScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor scheduledThreadPoolExecutor)Scheduler Thread Pool Executor- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProxyConfig
public TwitchPubSubBuilder withProxyConfig(com.github.twitch4j.common.config.ProxyConfig proxyConfig)Proxy Configuration- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
setBotOwnerIds
User IDs of Bot Owners for applyingCommandPermission.OWNER- Returns:
this.
-