Package com.couchbase.client.core.msg.kv
Interface SyncDurabilityRequest
-
- All Known Implementing Classes:
AppendRequest,DecrementRequest,IncrementRequest,InsertRequest,PrependRequest,RemoveRequest,ReplaceRequest,SubdocMutateRequest,UpsertRequest
public interface SyncDurabilityRequestMarker interface to signal that the given request supports synchronous durability.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidapplyLevelOnSpan(Optional<DurabilityLevel> level, RequestSpan span)Helper method to apply the durability level if present to the request span.Optional<DurabilityLevel>durabilityLevel()Returns the durability level if present.
-
-
-
Method Detail
-
durabilityLevel
Optional<DurabilityLevel> durabilityLevel()
Returns the durability level if present.
-
applyLevelOnSpan
default void applyLevelOnSpan(Optional<DurabilityLevel> level, RequestSpan span)
Helper method to apply the durability level if present to the request span.- Parameters:
level- the level to potentially apply.span- the span on which it should be applied on.
-
-