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
ConstructorsConstructorDescriptionEventSocketSubscriptionFailureEvent(EventSubSubscription subscription, TwitchEventSocket connection, Throwable error, boolean willRetry) Creates a newEventSocketSubscriptionFailureEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe EventSocket attempting to create the subscription.getError()The exception associated with the subscription failure.The subscription that was attempted to be created.inthashCode()toString()booleanWhether 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 newEventSocketSubscriptionFailureEventinstance.- 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
-