public AsyncExists(AsyncExists other)
     : base(other)
 {
     this.listener  = other.listener;
     this.key       = other.key;
     this.partition = other.partition;
 }
 public AsyncExists(AsyncCluster cluster, Policy policy, Key key, ExistsListener listener)
     : base(cluster, policy)
 {
     this.listener  = listener;
     this.key       = key;
     this.partition = Partition.Read(cluster, policy, key);
 }
 public AsyncExists(AsyncCluster cluster, Policy policy, Key key, ExistsListener listener)
     : base(cluster)
 {
     this.policy    = policy;
     this.listener  = listener;
     this.key       = key;
     this.partition = new Partition(key);
 }
예제 #4
0
 public AsyncExists(AsyncCluster cluster, Policy policy, Key key, ExistsListener listener)
     : base(cluster)
 {
     this.policy = policy;
     this.listener = listener;
     this.key = key;
     this.partition = new Partition(key);
 }
예제 #5
0
 public AsyncExists(AsyncExists other)
     : base(other)
 {
     this.listener = other.listener;
     this.key      = other.key;
 }
예제 #6
0
 public AsyncExists(AsyncCluster cluster, Policy policy, Key key, ExistsListener listener)
     : base(cluster, policy, new Partition(key), true)
 {
     this.listener = listener;
     this.key      = key;
 }
 /// <summary>
 /// Asynchronously determine if a record key exists.
 /// Schedule the exists command with a channel selector and return.
 /// Another thread will process the command and send the results to the listener.
 /// <para>
 /// The policy can be used to specify timeouts.
 /// </para>
 /// </summary>
 /// <param name="policy">generic configuration parameters, pass in null for defaults</param>
 /// <param name="listener">where to send results</param>
 /// <param name="key">unique record identifier</param>
 /// <exception cref="AerospikeException">if queue is full</exception>
 public void Exists(Policy policy, ExistsListener listener, Key key)
 {
     if (policy == null)
     {
         policy = readPolicyDefault;
     }
     AsyncExists async = new AsyncExists(cluster, policy, key, listener);
     async.Execute();
 }