Class PolicyUtils

java.lang.Object
org.springframework.data.aerospike.core.PolicyUtils

public final class PolicyUtils extends Object
A utility class providing methods for initializing and processing Policy instances.
  • 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 - IAerospikeClient
      policy - Policy instance, typically not default policy to avoid saving transaction id to defaults
      Returns:
      Policy with filled Policy.txn if transaction is active