Package com.aerospike.client.policy

Examples of com.aerospike.client.policy.ClientPolicy


   * @param hostname        host name
   * @param port          host port
   * @throws AerospikeException  if host connection fails
   */
  public AerospikeClient(String hostname, int port) throws AerospikeException {
    this(new ClientPolicy(), new Host(hostname, port));
  }
View Full Code Here


   * @param hosts          array of potential hosts to seed the cluster
   * @throws AerospikeException  if all host connections fail
   */
  public AerospikeClient(ClientPolicy policy, Host... hosts) throws AerospikeException {
    if (policy == null) {
      policy = new ClientPolicy();
    }
    cluster = new Cluster(policy, hosts);
    cluster.initTendThread();
   
    if (policy.failIfNotConnected && ! cluster.isConnected()) {
View Full Code Here

    // If cluster has already been initialized, add hosts to existing cluster.
    if (cluster != null) {
      cluster.addSeeds(hosts);
      return;
   
    cluster = new Cluster(new ClientPolicy(), hosts);
    cluster.initTendThread();
  }
View Full Code Here

   * @param hostname        host name
   * @param port          host port
   * @throws AerospikeException  if host connection fails
   */
  public AerospikeClient(String hostname, int port) throws AerospikeException {
    this(new ClientPolicy(), new Host(hostname, port));
  }
View Full Code Here

   * @param hosts          array of potential hosts to seed the cluster
   * @throws AerospikeException  if all host connections fail
   */
  public AerospikeClient(ClientPolicy policy, Host... hosts) throws AerospikeException {
    if (policy == null) {
      policy = new ClientPolicy();
    }
    cluster = new Cluster(policy, hosts);
    cluster.initTendThread();
   
    if (policy.failIfNotConnected && ! cluster.isConnected()) {
View Full Code Here

    // If cluster has already been initialized, add hosts to existing cluster.
    if (cluster != null) {
      cluster.addSeeds(hosts);
      return;
   
    cluster = new Cluster(new ClientPolicy(), hosts);
    cluster.initTendThread();
  }
View Full Code Here

   * @param hostname        host name
   * @param port          host port
   * @throws AerospikeException  if host connection fails
   */
  public AerospikeClient(String hostname, int port) throws AerospikeException {
    this(new ClientPolicy(), new Host(hostname, port));
  }
View Full Code Here

   * @param hosts          array of potential hosts to seed the cluster
   * @throws AerospikeException  if all host connections fail
   */
  public AerospikeClient(ClientPolicy policy, Host... hosts) throws AerospikeException {
    if (policy == null) {
      policy = new ClientPolicy();
    }
    cluster = new Cluster(policy, hosts);
    cluster.initTendThread();
   
    if (policy.failIfNotConnected && ! cluster.isConnected()) {
View Full Code Here

    // If cluster has already been initialized, add hosts to existing cluster.
    if (cluster != null) {
      cluster.addSeeds(hosts);
      return;
   
    cluster = new Cluster(new ClientPolicy(), hosts);
    cluster.initTendThread();
  }
View Full Code Here

   * @param hostname        host name
   * @param port          host port
   * @throws AerospikeException  if host connection fails
   */
  public AerospikeClient(String hostname, int port) throws AerospikeException {
    this(new ClientPolicy(), new Host(hostname, port));
  }
View Full Code Here

TOP

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

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.