Package org.projectnessie.versioned
Interface Unchanged
-
- All Superinterfaces:
Operation
@Immutable public interface Unchanged extends Operation
An operation when ensures that a value has been unchanged since the expected hash for a commit. Always expects to match hash since this is otherwise a no-op. Can be used to enforce serialized transaction isolation confirming that no operations have occurred to the provided key since the operation stated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.projectnessie.versioned.Operation
Operation.OperationType
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Operation.OperationTypegetType()static Unchangedof(org.projectnessie.model.ContentKey key)Creates a unchanged operation for the given key.default booleanshouldMatchHash()Whether the commit expected hash should be reviewed to confirm the key for this operation hasn't changed since the expected hash.
-
-
-
Method Detail
-
getType
default Operation.OperationType getType()
-
shouldMatchHash
default boolean shouldMatchHash()
Description copied from interface:OperationWhether the commit expected hash should be reviewed to confirm the key for this operation hasn't changed since the expected hash.- Specified by:
shouldMatchHashin interfaceOperation- Returns:
- True if this operation should match the hash.
-
of
@Nonnull @Nonnull static Unchanged of(@Nonnull @Nonnull org.projectnessie.model.ContentKey key)
Creates a unchanged operation for the given key.- Parameters:
key- the key impacted by the operation- Returns:
- a unchanged operation for the key
-
-