public AsyncDelete(AsyncCluster cluster, WritePolicy writePolicy, Key key, DeleteListener listener) : base(cluster, writePolicy, new Partition(key), false) { this.writePolicy = writePolicy; this.listener = listener; this.key = key; }
public AsyncDelete(AsyncDelete other) : base(other) { this.writePolicy = other.writePolicy; this.listener = other.listener; this.key = other.key; }
/// <exception cref="System.Exception"></exception> protected override void Configure(IConfiguration config) { config.ObjectClass(typeof (Item)).CascadeOnDelete (true); _listener = new DeleteListener(); config.Diagnostic().AddListener(_listener); }
/// <exception cref="System.Exception"></exception> protected override void Configure(IConfiguration config) { config.ObjectClass(typeof(Item)).CascadeOnDelete (true); _listener = new DeleteListener(); config.Diagnostic().AddListener(_listener); }
public AsyncDelete(AsyncCluster cluster, WritePolicy policy, Key key, DeleteListener listener) : base(cluster) { this.policy = policy; this.listener = listener; this.key = key; this.partition = new Partition(key); }
public AsyncDelete(AsyncCluster cluster, WritePolicy writePolicy, Key key, DeleteListener listener) : base(cluster, writePolicy) { this.writePolicy = writePolicy; this.listener = listener; this.key = key; this.partition = Partition.Write(cluster, policy, key); }
/// <summary> /// Asynchronously delete record for specified key. /// Schedule the delete command with a channel selector and return. /// Another thread will process the command and send the results to the listener. /// <para> /// The policy specifies the transaction timeout. /// </para> /// </summary> /// <param name="policy">delete configuration parameters, pass in null for defaults</param> /// <param name="listener">where to send results, pass in null for fire and forget</param> /// <param name="key">unique record identifier</param> /// <exception cref="AerospikeException">if queue is full</exception> public void Delete(WritePolicy policy, DeleteListener listener, Key key) { if (policy == null) { policy = writePolicyDefault; } AsyncDelete async = new AsyncDelete(cluster, policy, key, listener); async.Execute(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void resetListeners() public virtual void resetListeners() { ThrowBPMNErrorListener.reset(); DeleteListener.reset(); }