Class LoomBatch

java.lang.Object
com.loomcache.client.LoomBatch

public class LoomBatch extends Object
Accumulates multiple data-structure operations and submits them to the cluster in a single network round trip.

Add operations through map, set, or queue, then call execute() to flush. Optionally make the batch atomic (all-or-nothing on the server, with cross-owner keyed map put/delete support through server two-phase commit) or replicated (Raft-committed). Non-atomic keyed map batches are split by owner group when the current partition table proves they span multiple groups; use executeAndReport() when callers need explicit partial sub-batch outcomes. A batch may contain at most DEFAULT_MAX_OPERATIONS entries. Instances are not thread-safe; create one batch per thread.