=cls #17908 Protobuf serializer for cluster sharding
This commit is contained in:
parent
9b6b43335f
commit
46811ca1ce
9 changed files with 6178 additions and 23 deletions
|
|
@ -36,7 +36,9 @@ private[akka] object Shard {
|
|||
/**
|
||||
* A case class which represents a state change for the Shard
|
||||
*/
|
||||
sealed trait StateChange { val entityId: EntityId }
|
||||
sealed trait StateChange extends ClusterShardingSerializable {
|
||||
val entityId: EntityId
|
||||
}
|
||||
|
||||
/**
|
||||
* `State` change for starting an entity in this `Shard`
|
||||
|
|
@ -55,8 +57,8 @@ private[akka] object Shard {
|
|||
/**
|
||||
* Persistent state of the Shard.
|
||||
*/
|
||||
@SerialVersionUID(1L) final case class State private (
|
||||
entities: Set[EntityId] = Set.empty)
|
||||
@SerialVersionUID(1L) final case class State private[akka] (
|
||||
entities: Set[EntityId] = Set.empty) extends ClusterShardingSerializable
|
||||
|
||||
/**
|
||||
* Factory method for the [[akka.actor.Props]] of the [[Shard]] actor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue