Optimistic blocking in aerosic java

I looked at an example where you can take a row lock in aerosics. The docs mentioned below say it has support but cannot find an example the same. Can anyone please pass a method (s) that supports these

Link: https://docs.aerospike.com/display/V3/Key-Value+Store

+3


source to share


1 answer


You can do this by setting the appropriate attributes in WritePolicy. For example, for our Java client, you can find out the details here:

http://www.aerospike.com/apidocs/java/com/aerospike/client/policy/WritePolicy.html

You want to look at GenerationPolicy:



http://www.aerospike.com/apidocs/java/com/aerospike/client/policy/GenerationPolicy.html

Also note that our documentation has been updated and is now under http://www.aerospike.com/docs

+6


source







All Articles