Class ClusterReceptionist.State

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product
    Enclosing class:
    ClusterReceptionist

    public static final class ClusterReceptionist.State
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    param: registry The last seen state from the replicator - only updated when we get an update from th replicator param: servicesPerActor needed since an actor can implement several services param: tombstones Local actors that were stopped and should not be re-added to the available set of actors for a key. param: subscriptions Locally subscriptions, not replicated
    See Also:
    Serialized Form
    • Method Detail

      • servicesPerActor

        public scala.collection.immutable.Map<ActorRef<?>,​scala.collection.immutable.Set<AbstractServiceKey>> servicesPerActor()
      • tombstones

        public scala.collection.immutable.Map<ActorRef<?>,​scala.collection.immutable.Set<scala.Tuple2<AbstractServiceKey,​scala.concurrent.duration.Deadline>>> tombstones()
      • addTombstone

        public ClusterReceptionist.State addTombstone​(ActorRef<?> actor,
                                                      scala.concurrent.duration.Deadline deadline)
        tombstone all services actor is registered for
      • hasTombstone

        public <T> boolean hasTombstone​(ServiceKey<T> serviceKey,
                                        ActorRef<T> actorRef)
      • activeActorRefsFor

        public <T> scala.Tuple2<scala.collection.immutable.Set<ActorRef<T>>,​scala.collection.immutable.Set<ActorRef<T>>> activeActorRefsFor​(ServiceKey<T> key,
                                                                                                                                                  UniqueAddress selfUniqueAddress)
        Returns:
        (reachable-nodes, all)
      • copy$default$2

        public scala.collection.immutable.Map<ActorRef<?>,​scala.collection.immutable.Set<AbstractServiceKey>> copy$default$2()
      • copy$default$3

        public scala.collection.immutable.Map<ActorRef<?>,​scala.collection.immutable.Set<scala.Tuple2<AbstractServiceKey,​scala.concurrent.duration.Deadline>>> copy$default$3()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object