Class PrimaryShardInfo


  • public class PrimaryShardInfo
    extends Object
    Local message DTO that contains information about the primary shard.
    Author:
    Thomas Pantelis
    • Constructor Detail

      • PrimaryShardInfo

        public PrimaryShardInfo​(@NonNull ActorSelection primaryShardActor,
                                short primaryShardVersion,
                                @NonNull ReadOnlyDataTree localShardDataTree)
      • PrimaryShardInfo

        public PrimaryShardInfo​(@NonNull ActorSelection primaryShardActor,
                                short primaryShardVersion)
    • Method Detail

      • getPrimaryShardActor

        public @NonNull ActorSelection getPrimaryShardActor()
        Returns an ActorSelection representing the primary shard actor.
      • getPrimaryShardVersion

        public short getPrimaryShardVersion()
        Returns the version of the primary shard.
      • getLocalShardDataTree

        public @NonNull Optional<ReadOnlyDataTree> getLocalShardDataTree()
        Returns an Optional whose value contains the primary shard's DataTree if the primary shard is local to the caller. Otherwise the Optional value is absent.