Skip to content

Commit

Permalink
Revert removal of deprecated properties - these properties are still …
Browse files Browse the repository at this point in the history
…relevant in Aerospike Client 4.4.x. (should be removed in 3.0.0).
  • Loading branch information
roimenashe committed May 19, 2021
1 parent fa6ed97 commit 9310a36
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.springframework.data.aerospike.config;

import com.aerospike.client.policy.Priority;
import org.springframework.beans.factory.FactoryBean;

import com.aerospike.client.policy.Policy;
Expand Down Expand Up @@ -72,6 +73,15 @@ public void setSleepBetweenRetries(int sleepBetweenRetries){
this.policy.sleepBetweenRetries = sleepBetweenRetries;
}

/**
* Configures the priority of request relative to other transactions.
* Currently, only used for scans.
* @param priority The priority configuration value.
*/
public void setPriority(Priority priority){
this.policy.priority = priority;
}

/*
* (non-Javadoc)
* @see org.springframework.beans.factory.FactoryBean#getObject()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ public ScanPolicyFactoryBean() {
public void setConcurrentNodes(boolean concurrentNodes){
this.policy.concurrentNodes = concurrentNodes;
}


/**
* Configures termination of scan if cluster in fluctuating state.
* @param failOnClusterChange The failOnClusterChange configuration value.
*/
public void setFailOnClusterChange(boolean failOnClusterChange){
this.policy.failOnClusterChange = failOnClusterChange;
}

/**
* Indicates if bin data is retrieved. If false, only record digests are retrieved.
* @param includeBinData The includeBinData configuration value.
Expand All @@ -65,6 +73,15 @@ public void setMaxConcurrentNodes(int maxConcurrentNodes){
this.policy.maxConcurrentNodes = maxConcurrentNodes;
}

/**
* Configure the percent of data to scan. Valid integer range is 1 to 100.
* Default is 100.
* @param scanPercent The scanPercent configuration value.
*/
public void setScanPercent(int scanPercent){
this.policy.scanPercent = scanPercent;
}

/*
* (non-Javadoc)
* @see org.springframework.beans.factory.FactoryBean#getObject()
Expand Down

0 comments on commit 9310a36

Please sign in to comment.