Interface WriteBatching


  • @Immutable
    public interface WriteBatching
    • 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 0 or 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 the batching implementation assumes that objects to be stored do not already exist, all row-level checks are not in effect, the batching implementation 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 Persist implementations.