Package com.aerospike.client.policy

Examples of com.aerospike.client.policy.Policy


  ) throws AerospikeException {
    super(cluster, keys);
    this.listener = listener;
   
    if (policy == null) {
      policy = new Policy();
    }

    // Dispatch asynchronous commands to nodes.
    for (BatchNode batchNode : batchNodes) {     
      for (BatchNamespace batchNamespace : batchNode.batchNamespaces) {
View Full Code Here


    String packageName,
    String functionName,
    Value... functionArgs
  ) throws AerospikeException {
    if (policy == null) {
      policy = new Policy();
    }
    new ServerExecutor(cluster, policy, statement, packageName, functionName, functionArgs);
    return new ExecuteTask(cluster, statement);
  }
View Full Code Here

    String packageName,
    String functionName,
    Value... functionArgs
  ) throws AerospikeException {
    if (policy == null) {
      policy = new Policy();
    }
    new ServerExecutor(cluster, policy, statement, packageName, functionName, functionArgs);
    return new ExecuteTask(cluster, statement);
  }
View Full Code Here

  private final String[] binNames;
  private Record record;
 
  public AsyncRead(AsyncCluster cluster, Policy policy, RecordListener listener, Key key, String[] binNames) {
    super(cluster, key);
    this.policy = (policy == null) ? new Policy() : policy;
    this.listener = listener;
    this.binNames = binNames;
  }
View Full Code Here

  ) throws AerospikeException {
    super(cluster, keys);
    this.listener = listener;
   
    if (policy == null) {
      policy = new Policy();
    }

    // Dispatch asynchronous commands to nodes.
    for (BatchNode batchNode : batchNodes) {     
      for (BatchNamespace batchNamespace : batchNode.batchNamespaces) {
View Full Code Here

    super(cluster, keys);
    this.recordArray = new Record[keys.length];
    this.listener = listener;
   
    if (policy == null) {
      policy = new Policy();
    }

    HashMap<Key,BatchItem> keyMap = BatchItem.generateMap(keys);
   
    // Dispatch asynchronous commands to nodes.
View Full Code Here

  public AsyncCommand(AsyncCluster cluster) {
    this.cluster = cluster;
  }
 
  public void execute() throws AerospikeException {
    Policy policy = getPolicy();
    timeout = policy.timeout;
   
    if (timeout > 0) { 
      limit = System.currentTimeMillis() + timeout;
    }
View Full Code Here

  private boolean retryOnInit() throws AerospikeException {
    if (complete.get()) {
      return true;
    }

    Policy policy = getPolicy();
   
    if (++iteration > policy.maxRetries) {
      return failOnNetworkInit();
    }
View Full Code Here

  protected final void retryAfterInit(AerospikeException ae) {
    if (complete.get()) {
      return;
    }

    Policy policy = getPolicy();

    if (++iteration > policy.maxRetries) {
      failOnNetworkError(ae);
      return;
    }
View Full Code Here

    super(cluster, keys);
    this.existsArray = new boolean[keys.length];
    this.listener = listener;
   
    if (policy == null) {
      policy = new Policy();
    }
   
    HashMap<Key,BatchItem> keyMap = BatchItem.generateMap(keys);
   
    // Dispatch asynchronous commands to nodes.
View Full Code Here

TOP

Related Classes of com.aerospike.client.policy.Policy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.