Interface WriteBatching
-
@Immutable public interface WriteBatching
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BATCH_SIZEstatic booleanDEFAULT_OPTIMISTIC
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intbatchSize()The maximum number of objects to be stored in a single batch.static org.projectnessie.versioned.storage.batching.ImmutableWriteBatching.Builderbuilder()default BatchingPersistcreate()default booleanoptimistic()org.projectnessie.versioned.storage.common.persist.Persistpersist()
-
-
-
Field Detail
-
DEFAULT_BATCH_SIZE
static final int DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_OPTIMISTIC
static final boolean DEFAULT_OPTIMISTIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
static org.projectnessie.versioned.storage.batching.ImmutableWriteBatching.Builder builder()
-
persist
org.projectnessie.versioned.storage.common.persist.Persist persist()
-
batchSize
@Default default int batchSize()
The maximum number of objects to be stored in a single batch.A value of
0or fewer means "infinite batching" and effectively disables flushes, preventing all writes from being persisted. This can be useful for testing in dry-run mode, but should not be used in production.
-
optimistic
@Default default boolean optimistic()
Optimistic batching means, that thebatchingimplementation assumes that objects to be stored do not already exist, all row-level checks are not in effect, thebatchingimplementation effectively "trusts" the called to do the right thing.IMPORTANT NOTE: there is currently no implementation that supports strict checks that would provide the same guarantees as live-production
Persistimplementations.
-
create
default BatchingPersist create()
-
-