public class PingOptions extends Object
Modifier and Type | Class and Description |
---|---|
class |
PingOptions.Built |
Modifier and Type | Method and Description |
---|---|
PingOptions.Built |
build() |
static PingOptions |
pingOptions()
Creates a new set of
PingOptions . |
PingOptions |
reportId(String reportId)
Sets a custom report ID that will be used in the report.
|
PingOptions |
retryStrategy(RetryStrategy retryStrategy)
Specifies a custom
RetryStrategy for this operation. |
PingOptions |
serviceTypes(ServiceType... serviceTypes)
Allows to customize the set of services to ping.
|
PingOptions |
serviceTypes(Set<ServiceType> serviceTypes)
Allows to customize the set of services to ping.
|
PingOptions |
timeout(Duration timeout)
Specifies a custom per-operation timeout.
|
public static PingOptions pingOptions()
PingOptions
.public PingOptions reportId(String reportId)
If no report ID is provided, the client will generate a unique one.
reportId
- the report ID that should be used for this report.PingOptions
to allow method chaining.public PingOptions serviceTypes(Set<ServiceType> serviceTypes)
If this method is not called, all available services are included in the ping.
serviceTypes
- the service types that should be pinged.PingOptions
to allow method chaining.public PingOptions serviceTypes(ServiceType... serviceTypes)
If this method is not called, all available services are included in the ping.
serviceTypes
- the service types that should be pinged.PingOptions
to allow method chaining.public PingOptions timeout(Duration timeout)
Note: if a custom timeout is provided through this builder, it will override the default set on the environment.
timeout
- the timeout to use for this operation.public PingOptions retryStrategy(RetryStrategy retryStrategy)
RetryStrategy
for this operation.
Note: if a custom strategy is provided through this builder, it will override the default set on the environment.
retryStrategy
- the retry strategy to use for this operation.@Stability.Internal public PingOptions.Built build()
Copyright © 2021 Couchbase, Inc.. All rights reserved.