Interface WriteCoalescer.BatchWriter<K,V>

Type Parameters:
K - key type | 键类型
V - value type | 值类型
Enclosing class:
WriteCoalescer<K,V>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface WriteCoalescer.BatchWriter<K,V>
Batch writer interface 批量写入器接口
Since:
JDK 25, opencode-base-cache V2.0.5
Author:
Leon Soo www.LeonSoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeBatch(Map<K,V> batch)
    Write a batch of entries 写入一批条目
  • Method Details

    • writeBatch

      void writeBatch(Map<K,V> batch) throws Exception
      Write a batch of entries 写入一批条目
      Parameters:
      batch - entries to write (null value = delete) | 要写的条目(null 值 = 删除)
      Throws:
      Exception - if write fails | 写入失败时抛出