Class Result.Detail

  • Enclosing class:
    Result

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Endpoint getEndpoint()
      Returns the endpoint from which the result was received, or null if this failed before being assigned an endpoint
      java.lang.Exception getException()
      Returns any exception related to this Detail, if unsuccessful.
      Result.ResultType getResultType()
      Returns the result of the operation
      java.lang.String getTraceMessage()
      Returns any trace message produces, or null if none
      boolean isSuccess()
      Returns whether the operation was successful
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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, or null if this failed before being assigned an endpoint
      • isSuccess

        public boolean isSuccess()
        Returns whether 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.
      • getTraceMessage

        public java.lang.String getTraceMessage()
        Returns any trace message produces, or null if none
      • toString

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