Class EventSocketSubscriptionFailureEvent

java.lang.Object
com.github.twitch4j.eventsub.socket.events.EventSocketSubscriptionFailureEvent

public final class EventSocketSubscriptionFailureEvent extends Object
Called when an EventSocket fails to register subscription with the Helix API.
  • Constructor Details

    • EventSocketSubscriptionFailureEvent

      public EventSocketSubscriptionFailureEvent(EventSubSubscription subscription, TwitchEventSocket connection, Throwable error, boolean willRetry)
      Creates a new EventSocketSubscriptionFailureEvent 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

      public EventSubSubscription getSubscription()
      The subscription that was attempted to be created.
    • getConnection

      public TwitchEventSocket getConnection()
      The EventSocket attempting to create the subscription.
    • getError

      public Throwable 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object