/// <summary> /// Initializes a new instance of the <see cref="KeyInterest"/> class. /// </summary> /// <param name="keys">The keys.</param> /// <param name="policy">The policy.</param> /// <param name="durable">if set to <c>true</c> register durable interest.</param> /// <remarks> /// The client can register any of its interest lists and continuous queries as durable. /// Durable interest remains even if the client disconnects for a period of time. /// During the client’s down time, the server maintains its durable subscriptions and then, /// when the client reconnects, plays them back to the client. /// </remarks> public KeyInterest(ICacheableKey[] keys, InterestResultPolicy policy, bool durable) { this.keys = keys; this.policy = policy; this.durable = durable; }
/// <summary> /// Initializes a new instance of the <see cref="RegexInterest"/> class. /// </summary> /// <param name="regex">The regex.</param> /// <param name="policy">The policy.</param> /// <param name="durable">if set to <c>true</c> register durable interest.</param> /// <remarks> /// The client can register any of its interest lists and continuous queries as durable. /// Durable interest remains even if the client disconnects for a period of time. /// During the client’s down time, the server maintains its durable subscriptions and then, /// when the client reconnects, plays them back to the client. /// </remarks> public RegexInterest(string regex, InterestResultPolicy policy, bool durable) { this.regex = regex; this.policy = policy; this.durable = durable; }
/// <summary> /// Initializes a new instance of the <see cref="KeyInterest"/> class. /// </summary> /// <param name="keys">The keys.</param> /// <param name="policy">The policy.</param> public KeyInterest(ICacheableKey[] keys, InterestResultPolicy policy) : this(keys, policy, false) { }
/// <summary> /// Initializes a new instance of the <see cref="RegexInterest"/> class. /// </summary> /// <param name="regex">The regex.</param> /// <param name="policy">The policy.</param> public RegexInterest(string regex, InterestResultPolicy policy) : this(regex, policy, false) { }
/// <summary> /// Initializes a new instance of the <see cref="AllKeysInterest"/> class. /// </summary> /// <param name="policy">The policy.</param> /// <param name="durable">if set to <c>true</c> register durable interest.</param> /// <remarks> /// The client can register any of its interest lists and continuous queries as durable. /// Durable interest remains even if the client disconnects for a period of time. /// During the client’s down time, the server maintains its durable subscriptions and then, /// when the client reconnects, plays them back to the client. /// </remarks> public AllKeysInterest(InterestResultPolicy policy, bool durable) { this.policy = policy; this.durable = durable; }
/// <summary> /// Initializes a new instance of the <see cref="AllKeysInterest"/> class. /// </summary> /// <param name="policy">The policy.</param> public AllKeysInterest(InterestResultPolicy policy) { this.policy = policy; }