Class LoomBatch
java.lang.Object
com.loomcache.client.LoomBatch
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.
-
Field Details
-
DEFAULT_MAX_OPERATIONS
public static final int DEFAULT_MAX_OPERATIONS- See Also:
-
-
Constructor Details
-
LoomBatch
-
-
Method Details
-
atomic
-
replicated
-
map
-
set
-
queue
-
execute
public void execute() -
executeAndReport
-
size
public int size()
-