Class ClusterSharding.Passivate<M>

java.lang.Object
org.apache.pekko.cluster.sharding.typed.javadsl.ClusterSharding.Passivate<M>
All Implemented Interfaces:
Serializable, ClusterSharding.ShardCommand, ClusterSharding.ShardCommand, scala.Equals, scala.Product
Enclosing class:
ClusterSharding

public static final class ClusterSharding.Passivate<M> extends Object implements ClusterSharding.ShardCommand, scala.Product, Serializable
The entity can request passivation by sending the ClusterSharding.Passivate message to the ActorRef[ShardCommand] that was passed in to the factory method when creating the entity. Sharding will then send back the specified stopMessage message to the entity, which is then supposed to stop itself.
See Also:
  • Constructor Details

    • Passivate

      public Passivate(ActorRef<M> entity)
  • Method Details

    • entity

      public ActorRef<M> entity()
    • copy

      public <M> ClusterSharding.Passivate<M> copy(ActorRef<M> entity)
    • copy$default$1

      public <M> ActorRef<M> copy$default$1()
    • productPrefix

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

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

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

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

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

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

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

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

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