Class Waiter

    • Method Detail

      • fromNode

        public static Waiter fromNode​(Node node)
        Create a Waiter from a Node.
        Parameters:
        node - Node to create the Waiter from.
        Returns:
        Returns the created Waiter.
        Throws:
        ExpectationNotMetException - if the given node is invalid.
      • getDocumentation

        public java.util.Optional<java.lang.String> getDocumentation()
        Gets the documentation of the waiter.
        Returns:
        Return the optional documentation.
      • getAcceptors

        public java.util.List<Acceptor> getAcceptors()
        Gets the list of Acceptors.
        Returns:
        Returns the acceptors of the waiter.
      • getMinDelay

        public int getMinDelay()
        Gets the minimum amount of time to wait between retries in seconds.
        Returns:
        Gets the minimum retry wait time in seconds.
      • getMaxDelay

        public int getMaxDelay()
        Gets the maximum amount of time allowed to wait between retries in seconds.
        Returns:
        Gets the maximum retry wait time in seconds.
      • getTags

        public java.util.List<java.lang.String> getTags()
        Description copied from interface: Tagged
        Gets the tags applied to an object.
        Specified by:
        getTags in interface Tagged
        Returns:
        Returns the tag values.
      • isDeprecated

        public boolean isDeprecated()
        Checks if the waiter is deprecated.
        Returns:
        Returns true if the waiter is deprecated.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • 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