Package com.github.twitch4j.eventsub
Class ConduitShard
java.lang.Object
com.github.twitch4j.eventsub.ConduitShard
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConduitShard(String shardId, ShardStatus status, EventSubTransport transport) Creates a newConduitShardinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanShard ID.The shard status.The transport details used to send the notifications.inthashCode()toString()withShardId(String shardId) Shard ID.withStatus(ShardStatus status) The shard status.withTransport(EventSubTransport transport) The transport details used to send the notifications.
-
Constructor Details
-
ConduitShard
public ConduitShard() -
ConduitShard
Creates a newConduitShardinstance.- 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
-
toBuilder
-
withShardId
Shard ID.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStatus
The shard status.The subscriber receives events only for enabled shards.
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTransport
The transport details used to send the notifications.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getShardId
Shard ID. -
getStatus
The shard status.The subscriber receives events only for enabled shards.
-
getTransport
The transport details used to send the notifications. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-