コード例 #1
0
 public AsyncExists(AsyncExists other)
     : base(other)
 {
     this.listener  = other.listener;
     this.key       = other.key;
     this.partition = other.partition;
 }
コード例 #2
0
 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);
 }
コード例 #3
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);
 }
コード例 #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;
 }
コード例 #7
0
 /// <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();
 }