Package com.github.twitch4j
Class TwitchClientPool
java.lang.Object
com.github.twitch4j.TwitchClientPool
- All Implemented Interfaces:
ITwitchClient
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionTwitchClientPool
(com.github.philippheuer.events4j.core.EventManager eventManager, TwitchExtensions extensions, TwitchHelix helix, TwitchKraken kraken, TwitchMessagingInterface messagingInterface, ITwitchChat chat, ITwitchPubSub pubsub, TwitchGraphQL graphql, IEventSubSocket eventSocket, ScheduledThreadPoolExecutor threadPoolExecutor, com.github.philippheuer.credentialmanager.CredentialManager credentialManager, com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultAuthToken) Constructor -
Method Summary
-
Constructor Details
-
TwitchClientPool
@Internal public TwitchClientPool(com.github.philippheuer.events4j.core.EventManager eventManager, TwitchExtensions extensions, TwitchHelix helix, TwitchKraken kraken, TwitchMessagingInterface messagingInterface, ITwitchChat chat, ITwitchPubSub pubsub, TwitchGraphQL graphql, IEventSubSocket eventSocket, ScheduledThreadPoolExecutor threadPoolExecutor, com.github.philippheuer.credentialmanager.CredentialManager credentialManager, com.github.philippheuer.credentialmanager.domain.OAuth2Credential defaultAuthToken) Constructor- Parameters:
eventManager
- EventManagerextensions
- TwitchExtensionshelix
- TwitchHelixkraken
- TwitchKrakenmessagingInterface
- TwitchMessagingInterfacechat
- TwitchChatpubsub
- TwitchPubSubgraphql
- TwitchGraphQLeventSocket
- Twitch EventSub over WebSocketthreadPoolExecutor
- ScheduledThreadPoolExecutorcredentialManager
- CredentialManagerdefaultAuthToken
- OAuth2Credential
-
-
Method Details
-
getExtensions
Deprecated.Get Extensions- Specified by:
getExtensions
in interfaceITwitchClient
- Returns:
- TwitchExtensions
-
getHelix
Get Helix- Specified by:
getHelix
in interfaceITwitchClient
- Returns:
- TwitchHelix
-
getKraken
Deprecated.Get Kraken- Specified by:
getKraken
in interfaceITwitchClient
- Returns:
- TwitchKraken
-
getMessagingInterface
Get MessagingInterface (API)- Specified by:
getMessagingInterface
in interfaceITwitchClient
- Returns:
- TwitchMessagingInterface
-
getChat
Get Chat- Specified by:
getChat
in interfaceITwitchClient
- Returns:
- ITwitchChat
-
getEventSocket
Description copied from interface:ITwitchClient
Get EventSocket (in public beta)- Specified by:
getEventSocket
in interfaceITwitchClient
- Returns:
- IEventSubSocket
-
getPubSub
Get PubSub- Specified by:
getPubSub
in interfaceITwitchClient
- Returns:
- ITwitchPubSub
-
getGraphQL
Description copied from interface:ITwitchClient
Get GraphQLThis is an unofficial API that is not intended for third-party use. Use at your own risk. Methods could change or stop working at any time.
- Specified by:
getGraphQL
in interfaceITwitchClient
- Returns:
- TwitchGraphQL
-
close
public void close()Close- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceITwitchClient
-
getEventManager
public com.github.philippheuer.events4j.core.EventManager getEventManager()Event Manager- Specified by:
getEventManager
in interfaceITwitchClient
- Returns:
- EventManager
-
getModuleLoader
Modules- Specified by:
getModuleLoader
in interfaceITwitchClient
- Returns:
- ModuleLoader
-
getClientHelper
TwitchClientHelperA helper method that contains some common use-cases, like follow events / go live event listeners / ...
- Specified by:
getClientHelper
in interfaceITwitchClient
- Returns:
- TwitchClientHelper
-