Class WaitUntilReadyOptions
- java.lang.Object
-
- com.couchbase.client.java.diagnostics.WaitUntilReadyOptions
-
public class WaitUntilReadyOptions extends Object
Allows to customize the diagnostics report.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WaitUntilReadyOptions.Built
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WaitUntilReadyOptions.Built
build()
WaitUntilReadyOptions
desiredState(ClusterState desiredState)
Allows to customize the desired state to wait for.WaitUntilReadyOptions
serviceTypes(Set<ServiceType> serviceTypes)
Allows to customize the set of services to wait for.static WaitUntilReadyOptions
waitUntilReadyOptions()
Creates a new set ofWaitUntilReadyOptions
.
-
-
-
Method Detail
-
waitUntilReadyOptions
public static WaitUntilReadyOptions waitUntilReadyOptions()
Creates a new set ofWaitUntilReadyOptions
.- 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.- 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
@Internal public WaitUntilReadyOptions.Built build()
-
-