Class ConduitShardReassociationFailureEvent
java.lang.Object
com.github.twitch4j.eventsub.socket.events.ConduitShardReassociationFailureEvent
Fired when a websocket shard unexpected disconnected and could not be re-associated with the conduit after reconnecting.
-
Constructor Summary
ConstructorDescriptionConduitShardReassociationFailureEvent
(TwitchEventSocket socket, TwitchConduitSocketPool pool, String shardId, Exception exception) Creates a newConduitShardReassociationFailureEvent
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The exception thrown byTwitchHelix.updateConduitShards(String, ShardsInput)
when trying to re-associate the websocket as a conduit shard for the given ID.getPool()
The Conduit pool containing the disconnected conduit shard.The ID of the shard that disconnected.The websocket that reconnected after an unexpected connection loss, but could not be re-associated as a conduit shard.int
hashCode()
toString()
-
Constructor Details
-
ConduitShardReassociationFailureEvent
public ConduitShardReassociationFailureEvent(TwitchEventSocket socket, TwitchConduitSocketPool pool, String shardId, Exception exception) Creates a newConduitShardReassociationFailureEvent
instance.- Parameters:
socket
- The websocket that reconnected after an unexpected connection loss, but could not be re-associated as a conduit shard.pool
- The Conduit pool containing the disconnected conduit shard.shardId
- The ID of the shard that disconnected.exception
- The exception thrown byTwitchHelix.updateConduitShards(String, ShardsInput)
when trying to re-associate the websocket as a conduit shard for the given ID.
-
-
Method Details
-
getSocket
The websocket that reconnected after an unexpected connection loss, but could not be re-associated as a conduit shard. -
getPool
The Conduit pool containing the disconnected conduit shard. -
getShardId
The ID of the shard that disconnected. -
getException
The exception thrown byTwitchHelix.updateConduitShards(String, ShardsInput)
when trying to re-associate the websocket as a conduit shard for the given ID. -
equals
-
hashCode
public int hashCode() -
toString
-