package typed

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Package Members

  1. package delivery
  2. package internal
  3. package javadsl
  4. package scaladsl
  5. package testkit

Type Members

  1. sealed trait ClusterShardingQuery extends AnyRef

    Protocol for querying sharding state e.g.

    Protocol for querying sharding state e.g. A ShardRegion's state

  2. final class ClusterShardingSettings extends AnyRef

  3. final case class GetClusterShardingStats(entityTypeKey: EntityTypeKey[_], timeout: FiniteDuration, replyTo: ActorRef[ClusterShardingStats]) extends ClusterShardingQuery with Product with Serializable

    Query the statistics about the currently running sharded entities in the entire cluster.

    Query the statistics about the currently running sharded entities in the entire cluster. If the given timeout is reached without answers from all shard regions the reply will contain an empty map of regions.

    Intended for testing purpose to see when cluster sharding is "ready" or to monitor the state of the shard regions.

    timeout

    the timeout applied to querying all alive regions

    replyTo

    the actor to send the result to

  4. final case class GetShardRegionState(entityTypeKey: EntityTypeKey[_], replyTo: ActorRef[CurrentShardRegionState]) extends ClusterShardingQuery with Product with Serializable

    Query the ShardRegion state for the given entity type key.

    Query the ShardRegion state for the given entity type key. This will get the state of the local ShardRegion's state.

    Intended for testing purpose to see when cluster sharding is "ready" or to monitor the state of the shard regions.

    For the statistics for the entire cluster, see GetClusterShardingStats.

  5. final class HashCodeMessageExtractor[M] extends ShardingMessageExtractor[ShardingEnvelope[M], M]

    Default message extractor type, using envelopes to identify what entity a message is for and the hashcode of the entityId to decide which shard an entity belongs to.

    Default message extractor type, using envelopes to identify what entity a message is for and the hashcode of the entityId to decide which shard an entity belongs to.

    This is recommended since it does not force details about sharding into the entity protocol

    M

    The type of message accepted by the entity actor

  6. abstract class HashCodeNoEnvelopeMessageExtractor[M] extends ShardingMessageExtractor[M, M]

    Default message extractor type, using a property of the message to identify what entity a message is for and the hashcode of the entityId to decide which shard an entity belongs to.

    Default message extractor type, using a property of the message to identify what entity a message is for and the hashcode of the entityId to decide which shard an entity belongs to.

    This is recommended since it does not force details about sharding into the entity protocol

    M

    The type of message accepted by the entity actor

  7. final class Murmur2MessageExtractor[M] extends ShardingMessageExtractor[ShardingEnvelope[M], M]

    The murmur2 message extractor uses the same algorithm as the default kafka partitoiner allowing kafka partitions to be mapped to shards.

    The murmur2 message extractor uses the same algorithm as the default kafka partitoiner allowing kafka partitions to be mapped to shards. This can be used with the akka.cluster.sharding.external.ExternalShardAllocationStrategy to have messages processed locally.

    Extend Murmur2NoEnvelopeMessageExtractor to not use a message envelope extractor.

  8. abstract class Murmur2NoEnvelopeMessageExtractor[M] extends ShardingMessageExtractor[M, M]
  9. final class ShardedDaemonProcessSettings extends AnyRef

    Not for user constructions, use factory methods to instanciate.

    Not for user constructions, use factory methods to instanciate.

    Annotations
    @ApiMayChange()
  10. final case class ShardingEnvelope[M](entityId: String, message: M) extends WrappedMessage with Product with Serializable

    Default envelope type that may be used with Cluster Sharding.

    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.

    entityId

    The business domain identifier of the entity.

    message

    The message to be send to the entity.

    Exceptions thrown

    `InvalidMessageException` if message is null.

  11. abstract class ShardingMessageExtractor[E, M] extends AnyRef

    Entirely customizable typed message extractor.

    Entirely customizable typed message extractor. Prefer HashCodeMessageExtractor or HashCodeNoEnvelopeMessageExtractorif possible.

    E

    Possibly an Envelope around the messages accepted by the entity actor, is the same as M if there is no envelope.

    M

    The type of message accepted by the entity actor

Ungrouped