Package com.github.twitch4j.eventsub
Class ConduitShard
java.lang.Object
com.github.twitch4j.eventsub.ConduitShard
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConduitShard
(String shardId, ShardStatus status, EventSubTransport transport) Creates a newConduitShard
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Shard ID.The shard status.The transport details used to send the notifications.int
hashCode()
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 newConduitShard
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
-
toBuilder
-
withShardId
Shard ID.- Returns:
- a clone of this object, except with this updated property (returns
this
if 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
this
if 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
this
if 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
-