예제 #1
0
 public AsyncReadHeader(AsyncReadHeader other)
     : base(other)
 {
     this.listener  = other.listener;
     this.key       = other.key;
     this.partition = other.partition;
 }
 /// <summary>
 /// Asynchronously read record generation and expiration only for specified key.  Bins are not read.
 /// Schedule the get 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 GetHeader(Policy policy, RecordListener listener, Key key)
 {
     if (policy == null)
     {
         policy = readPolicyDefault;
     }
     AsyncReadHeader async = new AsyncReadHeader(cluster, policy, listener, key);
     async.Execute();
 }