Class AdaptMessage<U,​T>

  • All Implemented Interfaces:
    InternalMessage, java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class AdaptMessage<U,​T>
    extends java.lang.Object
    implements InternalMessage, scala.Product, scala.Serializable
    INTERNAL API: Wrapping of messages that should be adapted by the included function. Used by ActorContext.spawnMessageAdapter and ActorContext.ask so that the function is applied in the "parent" actor (for better thread safety)..
    See Also:
    Serialized Form
    • Constructor Detail

      • AdaptMessage

        public AdaptMessage​(U msg,
                            scala.Function1<U,​T> adapter)
    • Method Detail

      • apply

        public static <U,​T> AdaptMessage<U,​T> apply​(U msg,
                                                                scala.Function1<U,​T> adapter)
      • unapply

        public static <U,​T> scala.Option<scala.Tuple2<U,​scala.Function1<U,​T>>> unapply​(AdaptMessage<U,​T> x$0)
      • msg

        public U msg()
      • adapter

        public scala.Function1<U,​T> adapter()
      • adapt

        public T adapt()
      • copy

        public <U,​T> AdaptMessage<U,​T> copy​(U msg,
                                                        scala.Function1<U,​T> adapter)
      • copy$default$1

        public <U,​T> U copy$default$1()
      • copy$default$2

        public <U,​T> scala.Function1<U,​T> copy$default$2()
      • 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
      • 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