Class TwitchClientPool

java.lang.Object
com.github.twitch4j.TwitchClientPool
All Implemented Interfaces:
ITwitchClient, java.lang.AutoCloseable

public class TwitchClientPool
extends java.lang.Object
implements ITwitchClient
  • Constructor Summary

    Constructors
    Constructor Description
    TwitchClientPool​(com.github.philippheuer.events4j.core.EventManager eventManager, com.github.twitch4j.extensions.TwitchExtensions extensions, com.github.twitch4j.helix.TwitchHelix helix, com.github.twitch4j.kraken.TwitchKraken kraken, com.github.twitch4j.tmi.TwitchMessagingInterface messagingInterface, com.github.twitch4j.chat.ITwitchChat chat, com.github.twitch4j.pubsub.ITwitchPubSub pubsub, com.github.twitch4j.graphql.TwitchGraphQL graphql, java.util.concurrent.ScheduledThreadPoolExecutor threadPoolExecutor)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    void close()
    Close
    com.github.twitch4j.chat.ITwitchChat getChat()
    Get Chat
    TwitchClientHelper getClientHelper()
    TwitchClientHelper
    com.github.philippheuer.events4j.core.EventManager getEventManager()
    Event Manager
    com.github.twitch4j.extensions.TwitchExtensions getExtensions()
    Get Extensions
    com.github.twitch4j.graphql.TwitchGraphQL getGraphQL()
    Get GraphQL
    com.github.twitch4j.helix.TwitchHelix getHelix()
    Get Helix
    com.github.twitch4j.kraken.TwitchKraken getKraken()
    Deprecated.
    com.github.twitch4j.tmi.TwitchMessagingInterface getMessagingInterface()
    Get MessagingInterface (API)
    ModuleLoader getModuleLoader()
    Modules
    com.github.twitch4j.pubsub.ITwitchPubSub getPubSub()
    Get PubSub

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TwitchClientPool

      public TwitchClientPool​(com.github.philippheuer.events4j.core.EventManager eventManager, com.github.twitch4j.extensions.TwitchExtensions extensions, com.github.twitch4j.helix.TwitchHelix helix, com.github.twitch4j.kraken.TwitchKraken kraken, com.github.twitch4j.tmi.TwitchMessagingInterface messagingInterface, com.github.twitch4j.chat.ITwitchChat chat, com.github.twitch4j.pubsub.ITwitchPubSub pubsub, com.github.twitch4j.graphql.TwitchGraphQL graphql, java.util.concurrent.ScheduledThreadPoolExecutor threadPoolExecutor)
      Constructor
      Parameters:
      eventManager - EventManager
      extensions - TwitchExtensions
      helix - TwitchHelix
      kraken - TwitchKraken
      messagingInterface - TwitchMessagingInterface
      chat - TwitchChat
      pubsub - TwitchPubSub
      graphql - TwitchGraphQL
      threadPoolExecutor - ScheduledThreadPoolExecutor
  • Method Details

    • getExtensions

      public com.github.twitch4j.extensions.TwitchExtensions getExtensions()
      Get Extensions
      Specified by:
      getExtensions in interface ITwitchClient
      Returns:
      TwitchExtensions
    • getHelix

      public com.github.twitch4j.helix.TwitchHelix getHelix()
      Get Helix
      Specified by:
      getHelix in interface ITwitchClient
      Returns:
      TwitchHelix
    • getKraken

      @Deprecated public com.github.twitch4j.kraken.TwitchKraken getKraken()
      Deprecated.
      Get Kraken
      Specified by:
      getKraken in interface ITwitchClient
      Returns:
      TwitchKraken
    • getMessagingInterface

      @Unofficial public com.github.twitch4j.tmi.TwitchMessagingInterface getMessagingInterface()
      Get MessagingInterface (API)
      Specified by:
      getMessagingInterface in interface ITwitchClient
      Returns:
      TwitchMessagingInterface
    • getChat

      public com.github.twitch4j.chat.ITwitchChat getChat()
      Get Chat
      Specified by:
      getChat in interface ITwitchClient
      Returns:
      ITwitchChat
    • getPubSub

      public com.github.twitch4j.pubsub.ITwitchPubSub getPubSub()
      Get PubSub
      Specified by:
      getPubSub in interface ITwitchClient
      Returns:
      ITwitchPubSub
    • getGraphQL

      @Unofficial public com.github.twitch4j.graphql.TwitchGraphQL getGraphQL()
      Get GraphQL
      Specified by:
      getGraphQL in interface ITwitchClient
      Returns:
      TwitchGraphQL
    • close

      public void close()
      Close
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface ITwitchClient
    • getEventManager

      public com.github.philippheuer.events4j.core.EventManager getEventManager()
      Event Manager
      Specified by:
      getEventManager in interface ITwitchClient
      Returns:
      EventManager
    • getModuleLoader

      public ModuleLoader getModuleLoader()
      Modules
      Specified by:
      getModuleLoader in interface ITwitchClient
      Returns:
      ModuleLoader
    • getClientHelper

      public TwitchClientHelper getClientHelper()
      TwitchClientHelper

      A helper method that contains some common use-cases, like follow events / go live event listeners / ...

      Specified by:
      getClientHelper in interface ITwitchClient
      Returns:
      TwitchClientHelper