Package com.aerospike.client.policy

Examples of com.aerospike.client.policy.WritePolicy


   * <p>
   * This constructor does not add hosts.
   */
  public CitrusleafClient() {
    ClLogInit();
    defaultWritePolicy = new WritePolicy();
    defaultWritePolicy.timeout = DEFAULT_TIMEOUT;
    defaultPolicy = new Policy();
    defaultPolicy.timeout = DEFAULT_TIMEOUT;
  }
View Full Code Here


   * @param hostname      host name
   * @param port        host port
   */
  public CitrusleafClient(String hostname, int port) {
    ClLogInit();
    defaultWritePolicy = new WritePolicy();
    defaultWritePolicy.timeout = DEFAULT_TIMEOUT;
    defaultPolicy = new Policy();
    defaultPolicy.timeout = DEFAULT_TIMEOUT;
   
    try {
View Full Code Here

    policy.scanPercent = 100;
    return policy;
  }
 
  private static WritePolicy getWritePolicy(ClOptions opts, ClWriteOptions wOpts) {
    WritePolicy policy = new WritePolicy();
 
    setPolicy(opts, policy);
   
    if (wOpts != null) {
      policy.expiration = wOpts.expiration;     
View Full Code Here

  private final DeleteListener listener;
  private boolean existed;
   
  public AsyncDelete(AsyncCluster cluster, WritePolicy policy, DeleteListener listener, Key key) {
    super(cluster, key);
    this.policy = (policy == null) ? new WritePolicy() : policy;
    this.listener = listener;
  }
View Full Code Here

  private final WritePolicy policy;
  private final WriteListener listener;
   
  public AsyncTouch(AsyncCluster cluster, WritePolicy policy, WriteListener listener, Key key) {
    super(cluster, key);
    this.policy = (policy == null)? new WritePolicy() : policy;
    this.listener = listener;
  }
View Full Code Here

  private final WritePolicy policy;
  private final Operation[] operations;
 
  public AsyncOperate(AsyncCluster cluster, WritePolicy policy, RecordListener listener, Key key, Operation[] operations) {
    super(cluster, policy, listener, key, null);
    this.policy = (policy == null) ? new WritePolicy() : policy;
    this.operations = operations;
  }
View Full Code Here

  private final Bin[] bins;
  private final Operation.Type operation;
   
  public AsyncWrite(AsyncCluster cluster, WritePolicy policy, WriteListener listener, Key key, Bin[] bins, Operation.Type operation) {
    super(cluster, key);
    this.policy = (policy == null)? new WritePolicy() : policy;
    this.listener = listener;
    this.bins = bins;
    this.operation = operation;
  }
View Full Code Here

  private final WritePolicy policy;
  private boolean existed;

  public DeleteCommand(Cluster cluster, WritePolicy policy, Key key) {
    super(cluster, key);
    this.policy = (policy == null) ? new WritePolicy() : policy;
  }
View Full Code Here

  private final WritePolicy policy;
  private final Operation[] operations;

  public OperateCommand(Cluster cluster, WritePolicy policy, Key key, Operation[] operations) {
    super(cluster, policy, key, null);
    this.policy = (policy == null) ? new WritePolicy() : policy;
    this.operations = operations;
  }
View Full Code Here

  private final Bin[] bins;
  private final Operation.Type operation;

  public WriteCommand(Cluster cluster, WritePolicy policy, Key key, Bin[] bins, Operation.Type operation) {
    super(cluster, key);
    this.policy = (policy == null) ? new WritePolicy() : policy;
    this.bins = bins;
    this.operation = operation;
  }
View Full Code Here

TOP

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

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.