Class PolicyUtils
java.lang.Object
org.springframework.data.aerospike.core.PolicyUtils
A utility class providing methods for initializing and processing
Policy instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.aerospike.client.policy.PolicyenrichPolicyWithTransaction(com.aerospike.client.IAerospikeClient client, com.aerospike.client.policy.Policy policy) Enrich given Policy with transaction id if transaction is active
-
Method Details
-
enrichPolicyWithTransaction
public static com.aerospike.client.policy.Policy enrichPolicyWithTransaction(com.aerospike.client.IAerospikeClient client, com.aerospike.client.policy.Policy policy) Enrich given Policy with transaction id if transaction is active- Parameters:
client- IAerospikeClientpolicy- Policy instance, typically not default policy to avoid saving transaction id to defaults- Returns:
- Policy with filled
Policy.txnif transaction is active
-