Class AdaptMessage<U,​T>

  • All Implemented Interfaces:
    InternalMessage, WrappedMessage,, scala.Equals, scala.Product

    public final class AdaptMessage<U,​T>
    extends java.lang.Object
    implements InternalMessage, WrappedMessage, scala.Product,
    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 message,
                            scala.Function1<U,​T> adapter)
    • Method Detail

      • apply

        public static <U,​T> AdaptMessage<U,​T> apply​(U message,
                                                                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)
      • adapter

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

        public T adapt()
      • copy

        public <U,​T> AdaptMessage<U,​T> copy​(U message,
                                                        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
      • productElementName

        public java.lang.String productElementName​(int x$1)
      • hashCode

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

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

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