final case classShardingEnvelope[A](entityId: String, message: A) extends Product with Serializable
Default envelope type that may be used with Cluster Sharding.
Cluster Sharding provides a default HashCodeMessageExtractor that is able to handle
these types of messages, by hashing the entityId into into the shardId. It is not the only,
but a convenient way to send envelope-wrapped messages via cluster sharding.
The alternative way of routing messages through sharding is to not use envelopes,
and have the message types themselves carry identifiers.
This member is added by an implicit conversion from ShardingEnvelope[A] to
any2stringadd[ShardingEnvelope[A]] performed by method any2stringadd in scala.Predef.
This member is added by an implicit conversion from ShardingEnvelope[A] to
ArrowAssoc[ShardingEnvelope[A]] performed by method ArrowAssoc in scala.Predef.
This member is added by an implicit conversion from ShardingEnvelope[A] to
StringFormat[ShardingEnvelope[A]] performed by method StringFormat in scala.Predef.
This member is added by an implicit conversion from ShardingEnvelope[A] to
ArrowAssoc[ShardingEnvelope[A]] performed by method ArrowAssoc in scala.Predef.
Default envelope type that may be used with Cluster Sharding.
Cluster Sharding provides a default HashCodeMessageExtractor that is able to handle these types of messages, by hashing the entityId into into the shardId. It is not the only, but a convenient way to send envelope-wrapped messages via cluster sharding.
The alternative way of routing messages through sharding is to not use envelopes, and have the message types themselves carry identifiers.