Class RequestMessage<V>

    • Constructor Detail

      • RequestMessage

        @ConstructorParameters({"from","id"})
        public RequestMessage​(ActorRef<?> from,
                              java.lang.Object id)
        Constructs a new RequestMessage. If the message is sent via RequestReplyHelper.call(), both argument may be set to null, or, preferably, the default constructor should be used instead.
        Parameters:
        from - the actor sending the request. Usually you should pass the result of RequestReplyHelper.from().
        id - a unique message identifier. Usually you should pass the result of RequestReplyHelper.makeId().
      • RequestMessage

        @ConstructorParameters("from")
        public RequestMessage​(ActorRef<?> from)
        Constructs a new RequestMessage.
        This constructor may only be used if the message is to be sent via RequestReplyHelper.call()
        Parameters:
        from - the actor sending the request. Usually you should pass the result of RequestReplyHelper.from().
      • RequestMessage

        @ConstructorParameters("id")
        public RequestMessage​(java.lang.Object id)
        Constructs a new RequestMessage.
        This constructor may only be used if the message is to be sent via RequestReplyHelper.call()
        Parameters:
        id - a unique message identifier. Usually you should pass the result of RequestReplyHelper.makeId().
      • RequestMessage

        public RequestMessage()
        Constructs a new RequestMessage.
        This constructor may only be used if the message is to be sent via RequestReplyHelper.call()
    • Method Detail

      • getId

        public java.lang.Object getId()
        A unique message identifier.
        Specified by:
        getId in interface IdMessage