Package com.pkgrove.pkgrovekit.storage
Class WriteCondition
-
- All Implemented Interfaces:
public class WriteConditionConditional-write semantics (HEL-236). Providers differ — IfAbsent maps to
If-None-Match: *(StorageCapability.CONDITIONAL_CREATE); IfMatch toIf-Match: <etag>(StorageCapability.CONDITIONAL_UPDATE). An implementation MUST throw CapabilityRejectedException rather than silently ignore a condition it cannot enforce — an unenforced condition is a lost-update bug.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWriteCondition.NoneUnconditional overwrite (the storage default).
public classWriteCondition.IfAbsentSucceed only when the key does not exist yet — the commit primitive.
public final classWriteCondition.IfMatchSucceed only when the key currently has etag (optimistic update).
-