RemoteShardInfo

@Serializable
data class RemoteShardInfo(val shardId: Int, val shardKey: ShardKey? = null, val peerId: Long, val state: ReplicaState = ReplicaState.UNKNOWN)

A shard served by another peer.

Constructors

Link copied to clipboard
constructor(shardId: Int, shardKey: ShardKey? = null, peerId: Long, state: ReplicaState = ReplicaState.UNKNOWN)

Properties

Link copied to clipboard
@SerialName(value = "peer_id")
val peerId: Long
Link copied to clipboard
@SerialName(value = "shard_id")
val shardId: Int
Link copied to clipboard
@SerialName(value = "shard_key")
val shardKey: ShardKey?
Link copied to clipboard
@SerialName(value = "state")
val state: ReplicaState