Package com.github.twitch4j
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 voidclose()Closecom.github.twitch4j.chat.ITwitchChatgetChat()Get ChatTwitchClientHelpergetClientHelper()TwitchClientHelpercom.github.philippheuer.events4j.core.EventManagergetEventManager()Event Managercom.github.twitch4j.extensions.TwitchExtensionsgetExtensions()Get Extensionscom.github.twitch4j.graphql.TwitchGraphQLgetGraphQL()Get GraphQLcom.github.twitch4j.helix.TwitchHelixgetHelix()Get Helixcom.github.twitch4j.kraken.TwitchKrakengetKraken()Deprecated.com.github.twitch4j.tmi.TwitchMessagingInterfacegetMessagingInterface()Get MessagingInterface (API)ModuleLoadergetModuleLoader()Modulescom.github.twitch4j.pubsub.ITwitchPubSubgetPubSub()Get PubSubMethods 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- EventManagerextensions- TwitchExtensionshelix- TwitchHelixkraken- TwitchKrakenmessagingInterface- TwitchMessagingInterfacechat- TwitchChatpubsub- TwitchPubSubgraphql- TwitchGraphQLthreadPoolExecutor- ScheduledThreadPoolExecutor
-
-
Method Details
-
getExtensions
public com.github.twitch4j.extensions.TwitchExtensions getExtensions()Get Extensions- Specified by:
getExtensionsin interfaceITwitchClient- Returns:
- TwitchExtensions
-
getHelix
public com.github.twitch4j.helix.TwitchHelix getHelix()Get Helix- Specified by:
getHelixin interfaceITwitchClient- Returns:
- TwitchHelix
-
getKraken
@Deprecated public com.github.twitch4j.kraken.TwitchKraken getKraken()Deprecated.Get Kraken- Specified by:
getKrakenin interfaceITwitchClient- Returns:
- TwitchKraken
-
getMessagingInterface
@Unofficial public com.github.twitch4j.tmi.TwitchMessagingInterface getMessagingInterface()Get MessagingInterface (API)- Specified by:
getMessagingInterfacein interfaceITwitchClient- Returns:
- TwitchMessagingInterface
-
getChat
public com.github.twitch4j.chat.ITwitchChat getChat()Get Chat- Specified by:
getChatin interfaceITwitchClient- Returns:
- ITwitchChat
-
getPubSub
public com.github.twitch4j.pubsub.ITwitchPubSub getPubSub()Get PubSub- Specified by:
getPubSubin interfaceITwitchClient- Returns:
- ITwitchPubSub
-
getGraphQL
@Unofficial public com.github.twitch4j.graphql.TwitchGraphQL getGraphQL()Get GraphQL- Specified by:
getGraphQLin interfaceITwitchClient- Returns:
- TwitchGraphQL
-
close
public void close()Close- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceITwitchClient
-
getEventManager
public com.github.philippheuer.events4j.core.EventManager getEventManager()Event Manager- Specified by:
getEventManagerin interfaceITwitchClient- Returns:
- EventManager
-
getModuleLoader
Modules- Specified by:
getModuleLoaderin interfaceITwitchClient- Returns:
- ModuleLoader
-
getClientHelper
TwitchClientHelperA helper method that contains some common use-cases, like follow events / go live event listeners / ...
- Specified by:
getClientHelperin interfaceITwitchClient- Returns:
- TwitchClientHelper
-