Class CustomTimeouts

    • Constructor Summary

      Constructors 
      Constructor Description
      CustomTimeouts​(java.time.Duration create, java.time.Duration update, java.time.Duration delete)  
    • Constructor Detail

      • CustomTimeouts

        public CustomTimeouts​(@Nullable
                              java.time.Duration create,
                              @Nullable
                              java.time.Duration update,
                              @Nullable
                              java.time.Duration delete)
        Parameters:
        create - the optional create timeout
        update - the optional update timeout
        delete - the optional delete timeout
    • Method Detail

      • getCreate

        public java.util.Optional<java.time.Duration> getCreate()
        Returns:
        the optional create timeout
      • getUpdate

        public java.util.Optional<java.time.Duration> getUpdate()
        Returns:
        the optional update timeout
      • getDelete

        public java.util.Optional<java.time.Duration> getDelete()
        Returns:
        the optional delete timeout
      • 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
      • golangString

        @InternalUse
        public static java.lang.String golangString​(java.util.Optional<java.time.Duration> duration)
      • parseTimeoutString

        public static java.time.Duration parseTimeoutString​(java.lang.String timeout)
        Given a string representing a duration, such as "300ms", "-1.5h" or "2h45m", parse it into a Duration.
        Parameters:
        timeout - the string to parse
        Returns:
        the parsed duration, or null if the input string was empty or null