Class DefaultWaiter.DefaultBuilder<T>

    • Method Detail

      • acceptors

        public Waiter.Builder<T> acceptors​(List<WaiterAcceptor<? super T>> waiterAcceptors)
        Description copied from interface: WaiterBuilder
        Defines a list of WaiterAcceptors to check whether an expected state has met after executing an operation.

        The SDK will iterate over the acceptors list and the first acceptor to match the result of the operation transitions the waiter to the state specified in the acceptor.

        This completely overrides any WaiterAcceptor currently configured in the builder via WaiterBuilder.addAcceptor(WaiterAcceptor)

        Specified by:
        acceptors in interface WaiterBuilder<T,​Waiter.Builder<T>>
        Parameters:
        waiterAcceptors - the waiter acceptors
        Returns:
        a reference to this object so that method calls can be chained together.
      • overrideConfiguration

        public Waiter.Builder<T> overrideConfiguration​(WaiterOverrideConfiguration overrideConfiguration)
        Description copied from interface: WaiterBuilder
        Defines overrides to the default SDK waiter configuration that should be used for waiters created by this builder.
        Specified by:
        overrideConfiguration in interface WaiterBuilder<T,​Waiter.Builder<T>>
        Parameters:
        overrideConfiguration - the override configuration
        Returns:
        a reference to this object so that method calls can be chained together.
      • addAcceptor

        public Waiter.Builder<T> addAcceptor​(WaiterAcceptor<? super T> waiterAcceptor)
        Description copied from interface: WaiterBuilder
        Adds a WaiterAcceptor to the end of the ordered waiterAcceptors list.

        The SDK will iterate over the acceptors list and the first acceptor to match the result of the operation transitions the waiter to the state specified in the acceptor.

        Specified by:
        addAcceptor in interface WaiterBuilder<T,​Waiter.Builder<T>>
        Parameters:
        waiterAcceptor - the waiter acceptors
        Returns:
        a reference to this object so that method calls can be chained together.
      • build

        public Waiter<T> build()
        Description copied from interface: Waiter.Builder
        An immutable object that is created from the properties that have been set on the builder.
        Specified by:
        build in interface Waiter.Builder<T>
        Returns:
        a reference to this object so that method calls can be chained together.