Class Retry


  • public final class Retry
    extends java.lang.Object
    retry Configuration relating to asynchronous retries
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Retry.RetryBuilder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Retry()  
      Retry​(java.lang.Integer maxAttempts, java.time.Instant endsOn, java.time.Instant nextAttemptOn)
      Creates a new Retry instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Retry.RetryBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.time.Instant getEndsOn()
      A timestamp that details the date on which the retry schedule expires, in ISO 8601 format.
      java.lang.Integer getMaxAttempts()
      Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization.
      java.time.Instant getNextAttemptOn()
      A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format.
      int hashCode()  
      void setEndsOn​(java.time.Instant endsOn)
      A timestamp that details the date on which the retry schedule expires, in ISO 8601 format.
      void setMaxAttempts​(java.lang.Integer maxAttempts)
      Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization.
      void setNextAttemptOn​(java.time.Instant nextAttemptOn)
      A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Retry

        public Retry()
      • Retry

        public Retry​(java.lang.Integer maxAttempts,
                     java.time.Instant endsOn,
                     java.time.Instant nextAttemptOn)
        Creates a new Retry instance.
        Parameters:
        maxAttempts - Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization. [Optional] [ 1 .. 15 ]
        endsOn - A timestamp that details the date on which the retry schedule expires, in ISO 8601 format. [Optional]
        nextAttemptOn - A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format. [Optional]
    • Method Detail

      • getMaxAttempts

        public java.lang.Integer getMaxAttempts()
        Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization. [Optional] [ 1 .. 15 ]
      • getEndsOn

        public java.time.Instant getEndsOn()
        A timestamp that details the date on which the retry schedule expires, in ISO 8601 format. [Optional]
      • getNextAttemptOn

        public java.time.Instant getNextAttemptOn()
        A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format. [Optional]
      • setMaxAttempts

        public void setMaxAttempts​(java.lang.Integer maxAttempts)
        Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization. [Optional] [ 1 .. 15 ]
      • setEndsOn

        public void setEndsOn​(java.time.Instant endsOn)
        A timestamp that details the date on which the retry schedule expires, in ISO 8601 format. [Optional]
      • setNextAttemptOn

        public void setNextAttemptOn​(java.time.Instant nextAttemptOn)
        A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format. [Optional]
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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