Class EventSocketSubscriptionFailureEvent
java.lang.Object
com.github.twitch4j.eventsub.socket.events.EventSocketSubscriptionFailureEvent
Called when an EventSocket fails to register subscription with the Helix API.
-
Constructor Summary
ConstructorDescriptionEventSocketSubscriptionFailureEvent
(EventSubSubscription subscription, TwitchEventSocket connection, Throwable error, boolean willRetry) Creates a newEventSocketSubscriptionFailureEvent
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The EventSocket attempting to create the subscription.getError()
The exception associated with the subscription failure.The subscription that was attempted to be created.int
hashCode()
toString()
boolean
Whether the library will automatically try to create the subscription again (at the next reconnect).
-
Constructor Details
-
EventSocketSubscriptionFailureEvent
public EventSocketSubscriptionFailureEvent(EventSubSubscription subscription, TwitchEventSocket connection, Throwable error, boolean willRetry) Creates a newEventSocketSubscriptionFailureEvent
instance.- Parameters:
subscription
- The subscription that was attempted to be created.connection
- The EventSocket attempting to create the subscription.error
- The exception associated with the subscription failure.willRetry
- Whether the library will automatically try to create the subscription again (at the next reconnect).
-
-
Method Details
-
getSubscription
The subscription that was attempted to be created. -
getConnection
The EventSocket attempting to create the subscription. -
getError
The exception associated with the subscription failure. -
willRetry
public boolean willRetry()Whether the library will automatically try to create the subscription again (at the next reconnect). -
equals
-
hashCode
public int hashCode() -
toString
-