Class ActorIdentity

java.lang.Object
org.apache.pekko.actor.ActorIdentity
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public final class ActorIdentity extends Object implements scala.Product, Serializable
Reply to pekko.actor.Identify. Contains Some(ref) with the ActorRef of the actor replying to the request or None if no actor matched the request. The correlationId is taken from the messageId in the Identify message.
See Also:
  • Constructor Details

    • ActorIdentity

      public ActorIdentity(Object correlationId, scala.Option<ActorRef> ref)
  • Method Details

    • apply

      public static ActorIdentity apply(Object correlationId, scala.Option<ActorRef> ref)
    • unapply

      public static scala.Option<scala.Tuple2<Object,scala.Option<ActorRef>>> unapply(ActorIdentity x$0)
    • correlationId

      public Object correlationId()
    • ref

      public scala.Option<ActorRef> ref()
    • getActorRef

      public Optional<ActorRef> getActorRef()
      Java API: ActorRef of the actor replying to the request or not defined if no actor matched the request.
    • copy

      public ActorIdentity copy(Object correlationId, scala.Option<ActorRef> ref)
    • copy$default$1

      public Object copy$default$1()
    • copy$default$2

      public scala.Option<ActorRef> copy$default$2()
    • 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