OptionalapplyApply policy. For more information, see ApplyPolicy
OptionalbatchBatch policy. For more information, see BasePolicy
OptionalbatchBatch apply policy. For more information, see BasePolicy
OptionalbatchBatch parent write policy. For more information, see BatchPolicy
OptionalbatchBatch write policy. For more information, see BatchWritePolicy
OptionalinfoInfo policy. For more information, see InfoPolicy
OptionaloperateOperate policy. For more information, see OperatePolicy
OptionalqueryQuery policy. For more information, see QueryPolicy
OptionalreadRead policy. For more information, see ReadPolicy
OptionalremoveRemove policy. For more information, see RemovePolicy
OptionalscanScan policy. For more information, see ScanPolicy
OptionaltxnTransaction Roll policy. Uses BatchPolicy. For more information, see BatchPolicy
OptionaltxnTransaction Verify policy. Uses BatchPolicy. For more information, see BatchPolicy
OptionalwriteWrite policy. For more information, see WritePolicy
Global client policies.
Remarks
The configuration defines default policies for the application. Policies define the behavior of the client, which can be global for all uses of a single type of command, or local to a single use of an command.
Each database command accepts a policy for that command as an argument. This is considered a local policy, and is a single use policy. This local policy supersedes any global policy defined.
If a value of the policy is not defined, then the rule is to fallback to the global policy for that command. If the global policy for that command is undefined, then the global default value will be used.
If you find that you have behavior that you want every use of an command to utilize, then you can specify the default policy as Config#policies.
For example, the Client#put command takes a WritePolicy parameter. If you find yourself setting the WritePolicy#key policy value for every call to Client.put, then you may find it beneficial to set the global WritePolicy in Config#policies, which all commands will use.
Example: Setting a default <code>key</code> policy for all write commands