Uses of Class
com.loomcache.server.transaction.Transaction
Packages that use Transaction
Package
Description
Multi-Raft sharding infrastructure for LoomCache.
-
Uses of Transaction in com.loomcache.server.sharding
Methods in com.loomcache.server.sharding with parameters of type TransactionModifier and TypeMethodDescriptionCrossGroupTransactionExecutor.applyCommittedTransaction(Transaction transaction, Function<Integer, DistributedMap<String, String>> mapResolver) Apply a Raft-committed transaction locally.CrossGroupTransactionExecutor.execute(Transaction transaction, Function<Integer, DistributedMap<String, String>> mapResolver) Execute a cross-group transaction.Constructors in com.loomcache.server.sharding with parameters of type TransactionModifierConstructorDescriptionCrossGroupTransactionContext(Transaction transaction, PartitionRouter router) Create a cross-group context by routing all keys through the partition router. -
Uses of Transaction in com.loomcache.server.transaction
Methods in com.loomcache.server.transaction that return TransactionModifier and TypeMethodDescriptionTransaction.Builder.build()Builds and returns the completed transaction.ReplicatedTransactionCommand.transaction()Returns the value of thetransactionrecord component.Methods in com.loomcache.server.transaction with parameters of type TransactionModifier and TypeMethodDescriptionstatic TransactionResultTransactionExecutor.execute(Transaction txn, DistributedMap<String, String> map) Executes a transaction atomically on the given map.static ReplicatedTransactionCommandReplicatedTransactionCommand.ofSingleMapPerGroup(Transaction transaction, Map<Integer, String> mapNameByGroup) static ReplicatedTransactionCommandReplicatedTransactionCommand.ofSingleMapPerGroup(Transaction transaction, Map<Integer, String> mapNameByGroup, @Nullable String senderId) Convenience factory for the legacy "one map per group" shape.Constructors in com.loomcache.server.transaction with parameters of type TransactionModifierConstructorDescriptionReplicatedTransactionCommand(Transaction transaction, Map<Integer, Set<String>> mapNamesByGroup) ReplicatedTransactionCommand(Transaction transaction, Map<Integer, Set<String>> mapNamesByGroup, @Nullable String senderId) Creates an instance of aReplicatedTransactionCommandrecord class.