Interface MongoTransactionOptionsResolver


public interface MongoTransactionOptionsResolver
A TransactionOptionResolver reading MongoDB specific transaction options from a TransactionDefinition. Implementations of MongoTransactionOptions may choose a specific prefix for transaction attribute labels to avoid evaluating non-store specific ones.

TransactionAttribute.getLabels() evaluated by default should follow the property style using = to separate key and value pairs.

By default resolve(TransactionDefinition) will filter labels by the prefix and strip the prefix from the label before handing the pruned Map to the convert(Map) function.

A transaction definition with labels targeting MongoDB may look like the following:

@Transactional(label = { "mongo:readConcern=majority" })

Since:
4.3
Author:
Christoph Strobl