Class CoreProtostellarUtil
java.lang.Object
com.couchbase.client.core.protostellar.CoreProtostellarUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.couchbase.client.protostellar.kv.v1.DurabilityLevel
static com.couchbase.client.protostellar.kv.v1.DurabilityLevel
static Instant
convertExpiry
(boolean hasExpiry, com.couchbase.client.core.deps.com.google.protobuf.Timestamp expiry) static com.couchbase.client.core.deps.io.grpc.Deadline
convertTimeout
(Duration timeout) static com.couchbase.client.core.deps.io.grpc.Deadline
convertTimeout
(Optional<Duration> customTimeout, Duration defaultTimeout) static RequestSpan
createSpan
(CoreProtostellar core, String spanName, CoreDurability durability, RequestSpan parent) static <T> boolean
handleShutdownAsync
(CoreProtostellar core, CompletableFuture<T> ret, ProtostellarRequest<?> request) static void
handleShutdownBlocking
(CoreProtostellar core, ProtostellarRequest<?> request) static <T> Mono<T>
handleShutdownReactive
(CoreProtostellar core, ProtostellarRequest<?> request) static <TSdkResult>
booleanhandleShutdownReactive
(Sinks.Many<TSdkResult> ret, CoreProtostellar core, ProtostellarRequest<?> request) static <TSdkResult>
booleanhandleShutdownReactive
(Sinks.One<TSdkResult> ret, CoreProtostellar core, ProtostellarRequest<?> request) static RuntimeException
incompatibleProtostellar
(String error) static Duration
kvDurableTimeout
(Optional<Duration> customTimeout, CoreDurability dl, CoreProtostellar core) static Duration
kvDurableTimeout
(Optional<Duration> customTimeout, Optional<DurabilityLevel> dl, CoreProtostellar core) static Duration
kvTimeout
(Optional<Duration> customTimeout, CoreProtostellar core) static Duration
managementTimeout
(Optional<Duration> customTimeout, CoreProtostellar core) static int
toExpirySeconds
(Duration expiry) static com.couchbase.client.core.deps.com.google.protobuf.Timestamp
toExpiryTime
(Instant expiry) static com.couchbase.client.protostellar.search.v1.LatLng
toLatLng
(CoreGeoPoint point) static RuntimeException
static RuntimeException
unsupportedInProtostellar
(String feature)
-
Method Details
-
kvTimeout
-
kvDurableTimeout
public static Duration kvDurableTimeout(Optional<Duration> customTimeout, CoreDurability dl, CoreProtostellar core) -
kvDurableTimeout
public static Duration kvDurableTimeout(Optional<Duration> customTimeout, Optional<DurabilityLevel> dl, CoreProtostellar core) -
convertTimeout
-
convertTimeout
-
managementTimeout
-
handleShutdownBlocking
-
handleShutdownAsync
public static <T> boolean handleShutdownAsync(CoreProtostellar core, CompletableFuture<T> ret, ProtostellarRequest<?> request) -
handleShutdownReactive
public static <TSdkResult> boolean handleShutdownReactive(Sinks.One<TSdkResult> ret, CoreProtostellar core, ProtostellarRequest<?> request) -
handleShutdownReactive
public static <TSdkResult> boolean handleShutdownReactive(Sinks.Many<TSdkResult> ret, CoreProtostellar core, ProtostellarRequest<?> request) -
handleShutdownReactive
@Nullable public static <T> Mono<T> handleShutdownReactive(CoreProtostellar core, ProtostellarRequest<?> request) -
convert
-
convert
-
convertExpiry
-
toExpiryTime
public static com.couchbase.client.core.deps.com.google.protobuf.Timestamp toExpiryTime(Instant expiry) -
toExpirySeconds
-
createSpan
public static RequestSpan createSpan(CoreProtostellar core, String spanName, CoreDurability durability, @Nullable RequestSpan parent) -
toLatLng
-
unsupportedInProtostellar
-
unsupportedCurrentlyInProtostellar
-
incompatibleProtostellar
-