Interface ValueEntity.Effect.OnSuccessBuilder<S>

  • Enclosing interface:
    ValueEntity.Effect<T>

    public static interface ValueEntity.Effect.OnSuccessBuilder<S>
    • Method Detail

      • thenReply

        <T> ValueEntity.Effect<T> thenReply​(T message)
        Reply after for example updateState.
        Type Parameters:
        T - The type of the message that must be returned by this call.
        Parameters:
        message - The payload of the reply.
        Returns:
        A message reply.
      • thenReply

        <T> ValueEntity.Effect<T> thenReply​(T message,
                                            Metadata metadata)
        Reply after for example updateState.
        Type Parameters:
        T - The type of the message that must be returned by this call.
        Parameters:
        message - The payload of the reply.
        metadata - The metadata for the message.
        Returns:
        A message reply.
      • thenForward

        <T> ValueEntity.Effect<T> thenForward​(ServiceCall serviceCall)
        Create a forward reply after for example updateState.
        Type Parameters:
        T - The type of the message that must be returned by this call.
        Parameters:
        serviceCall - The service call representing the forward.
        Returns:
        A forward reply.
      • thenNoReply

        <T> ValueEntity.Effect<T> thenNoReply()
        Create a reply that contains neither a message nor a forward nor an error.

        This may be useful for emitting effects without sending a message.

        Type Parameters:
        T - The type of the message that must be returned by this call.
        Returns:
        The reply.