Class Result.Detail

  • Enclosing class:
    Result

    @Immutable
    public static final class Result.Detail
    extends java.lang.Object
    Information in a Result for a single operation sent to a single endpoint.
    • Constructor Detail

      • Detail

        public Detail​(Endpoint endpoint,
                      Result.ResultType resultType,
                      java.lang.String traceMessage,
                      java.lang.Exception e)
      • Detail

        public Detail​(Endpoint endpoint)
    • Method Detail

      • getEndpoint

        public Endpoint getEndpoint()
        Returns the endpoint from which the result was received.
        Returns:
        the endpoint from which the result was received.
      • isSuccess

        public boolean isSuccess()
        Check if operation was successful.
        Returns:
        true if the operation was successful.
      • getResultType

        public Result.ResultType getResultType()
        Returns the result of the operation.
      • getException

        public java.lang.Exception getException()
        Returns any exception related to this Detail, if unsuccessful. Might be null.
        Returns:
        any exception related to this Detail, if unsuccessful. Might be null.
      • getTraceMessage

        public java.lang.String getTraceMessage()
        Returns trace message if any from gateway.
        Returns:
        null or trace message.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object