Class ConduitShard

java.lang.Object
com.github.twitch4j.eventsub.ConduitShard

public class ConduitShard extends Object
  • Constructor Details

    • ConduitShard

      public ConduitShard()
    • ConduitShard

      public ConduitShard(String shardId, ShardStatus status, EventSubTransport transport)
      Creates a new ConduitShard instance.
      Parameters:
      shardId - Shard ID.
      status - The shard status.

      The subscriber receives events only for enabled shards.

      transport - The transport details used to send the notifications.
  • Method Details

    • builder

      public static ConduitShard.ConduitShardBuilder builder()
    • toBuilder

    • withShardId

      public ConduitShard withShardId(String shardId)
      Shard ID.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStatus

      public ConduitShard withStatus(ShardStatus status)
      The shard status.

      The subscriber receives events only for enabled shards.

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTransport

      public ConduitShard withTransport(EventSubTransport transport)
      The transport details used to send the notifications.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getShardId

      public String getShardId()
      Shard ID.
    • getStatus

      public ShardStatus getStatus()
      The shard status.

      The subscriber receives events only for enabled shards.

    • getTransport

      public EventSubTransport getTransport()
      The transport details used to send the notifications.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object