Class TwitchPubSubBuilder

java.lang.Object
com.github.twitch4j.pubsub.TwitchPubSubBuilder

public class TwitchPubSubBuilder
extends java.lang.Object
Twitch PubSub Builder
  • Method Details

    • builder

      public static TwitchPubSubBuilder builder()
      Initialize the builder
      Returns:
      Twitch PubSub Builder
    • build

      public TwitchPubSub build()
      Twitch PubSub Client
      Returns:
      TwitchPubSub
    • withBotOwnerId

      public TwitchPubSubBuilder withBotOwnerId​(java.lang.String userId)
      With a Bot Owner's User ID
      Parameters:
      userId - the user id
      Returns:
      TwitchPubSubBuilder
    • withBotOwnerIds

      public TwitchPubSubBuilder withBotOwnerIds​(java.util.Collection<java.lang.String> botOwnerIds)
      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 applying CommandPermission.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 this if 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 this if 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 this if 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 this if an identical value is passed).
    • setBotOwnerIds

      public TwitchPubSubBuilder setBotOwnerIds​(java.util.Collection<java.lang.String> botOwnerIds)
      User IDs of Bot Owners for applying CommandPermission.OWNER
      Returns:
      this.