Interface CCollectionWaiter<E>

    • Method Detail

      • waitSizeEquals

        default boolean waitSizeEquals​(int expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the map size is equal to expected value.
        Parameters:
        expected - value to compare
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeEquals

        default boolean waitSizeEquals​(int expected,
                                       int waitInSeconds)
        Wait for defined number of seconds till the map size is equal to expected value.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeEquals

        default boolean waitSizeEquals​(int expected,
                                       int waitInSeconds,
                                       int intervalInMilliSeconds)
        Wait for defined number of seconds till the map size is equal to expected value.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeIsGreaterThan

        default boolean waitSizeIsGreaterThan​(int expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual has value greater than expected.
        Parameters:
        expected - value to compare
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeIsGreaterThan

        default boolean waitSizeIsGreaterThan​(int expected,
                                              int waitInSeconds)
        Wait for defined number of seconds till the actual has value greater than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeIsGreaterThan

        default boolean waitSizeIsGreaterThan​(int expected,
                                              int waitInSeconds,
                                              int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual has value greater than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeIsLessThan

        default boolean waitSizeIsLessThan​(int expected)
        Wait for CConfigs.TypeExtension.getDefaultWaitInSeconds() number of milliseconds till the actual has value less than expected.
        Parameters:
        expected - value to compare
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeIsLessThan

        default boolean waitSizeIsLessThan​(int expected,
                                           int waitInSeconds)
        Wait for defined number of seconds till the actual has value less than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        Returns:
        true if wait operation succeed otherwise return false
      • waitSizeIsLessThan

        default boolean waitSizeIsLessThan​(int expected,
                                           int waitInSeconds,
                                           int intervalInMilliSeconds)
        Wait for defined number of seconds till the actual has value less than expected.
        Parameters:
        expected - value to compare
        waitInSeconds - maximum wait time
        intervalInMilliSeconds - interval between retries in milliseconds
        Returns:
        true if wait operation succeed otherwise return false