Class ReplicatedTransactionCodec

java.lang.Object
com.loomcache.server.transaction.ReplicatedTransactionCodec

public final class ReplicatedTransactionCodec extends Object
Binary codec for ReplicatedTransactionCommand.

Wire format is versioned — first byte is the format version. Version 1 (pre-ESC-14) carried Map<Integer, String> and omitted per-operation map names. Version 2 (ESC-14) carries Map<Integer, Set<String>> and a nullable per-operation / per-condition mapName so that cross-group atomic BATCH_EXECUTE can encode operations that target different logical maps within the same Raft group.

Cross-version compat

Version 1 payloads are accepted on the read path to protect state-machine replay across an in-flight rolling upgrade. Version 2 is always written.