Class WaitUntilReadyOptions

java.lang.Object
com.couchbase.client.java.diagnostics.WaitUntilReadyOptions

public class WaitUntilReadyOptions extends Object
Allows to customize the diagnostics report.
  • Method Details

    • waitUntilReadyOptions

      public static WaitUntilReadyOptions waitUntilReadyOptions()
      Creates a new set of WaitUntilReadyOptions.
      Returns:
      options to customize.
    • serviceTypes

      public WaitUntilReadyOptions serviceTypes(Set<ServiceType> serviceTypes)
      Allows to customize the set of services to wait for.

      If no set is provided, all possible services are waited for.

      Parameters:
      serviceTypes - the service types that should be waited for. If none are specified, wait for all.
      Returns:
      the WaitUntilReadyOptions to allow method chaining.
    • serviceTypes

      public WaitUntilReadyOptions serviceTypes(ServiceType... serviceTypes)
      Allows to customize the set of services to wait for.

      If no service types are provided, all possible services are waited for.

      Parameters:
      serviceTypes - the service types that should be waited for. If none are specified, wait for all.
      Returns:
      the WaitUntilReadyOptions to allow method chaining.
    • desiredState

      public WaitUntilReadyOptions desiredState(ClusterState desiredState)
      Allows to customize the desired state to wait for.
      Parameters:
      desiredState - the state the sdk should wait for.
      Returns:
      the WaitUntilReadyOptions to allow method chaining.
    • build