/// <summary> /// Copy timeout from other InfoPolicy. /// </summary> public InfoPolicy(InfoPolicy other) { this.timeout = other.timeout; }
/// <summary> /// Initialize task that has already completed. /// </summary> public BaseTask() { this.cluster = null; this.policy = null; this.done = true; }
/// <summary> /// Initialize task with fields needed to query server nodes. /// </summary> public BaseTask(Cluster cluster, Policy policy) { this.cluster = cluster; this.policy = new InfoPolicy(policy); this.done = false; }