Package tv.phantombot.twitch.irc
Class TwitchSession
java.lang.Object
java.util.concurrent.SubmissionPublisher<Message>
tv.phantombot.twitch.irc.chat.utils.MessageQueue
tv.phantombot.twitch.irc.TwitchSession
- All Implemented Interfaces:
- AutoCloseable,- Flow.Processor<Message,,- Message> - Flow.Publisher<Message>,- Flow.Subscriber<Message>
- 
Field SummaryFields inherited from class tv.phantombot.twitch.irc.chat.utils.MessageQueuechannelName, isAllowedToSend, nextReminder, REMINDER_INTERVAL, subscription
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Method that stops everything for TwitchWSIRC, there's no going back after this.voidMethod that returns the bot name.Method that returns the channel namevoidMethod that will do the moderation check of the bot.intvoidvoidvoidvoidquitIRC()voidMethod that handles reconnecting with Twitch.voidMethod that sends channel message.Methods inherited from class tv.phantombot.twitch.irc.chat.utils.MessageQueueisAllowedToSendMessages, kill, onError, onSubscribe, say, sayNow, setAllowSendMessagesMethods inherited from class java.util.concurrent.SubmissionPublishercloseExceptionally, consume, estimateMaximumLag, estimateMinimumDemand, getClosedException, getExecutor, getMaxBufferCapacity, getNumberOfSubscribers, getSubscribers, hasSubscribers, isClosed, isSubscribed, offer, offer, submit, subscribeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Flow.Publishersubscribe
- 
Constructor Details- 
TwitchSessionClass constructor.- Parameters:
- channelName-
- botName-
 
 
- 
- 
Method Details- 
doSubscribepublic void doSubscribe()
- 
getChannelNameMethod that returns the channel name- Returns:
- channelName
 
- 
joinSuccesspublic void joinSuccess()
- 
getBotNameMethod that returns the bot name.- Returns:
- botName
 
- 
getWritespublic int getWrites()
- 
sendMethod that sends channel message.- Parameters:
- message-
 
- 
getModerationStatuspublic void getModerationStatus()Method that will do the moderation check of the bot.
- 
reconnectpublic void reconnect()Method that handles reconnecting with Twitch.
- 
onNext
- 
onCompletepublic void onComplete()
- 
quitIRCpublic void quitIRC()
- 
closepublic void close()Method that stops everything for TwitchWSIRC, there's no going back after this.- Specified by:
- closein interface- AutoCloseable
- Overrides:
- closein class- SubmissionPublisher<Message>
 
 
-