コード例 #1
0
 /**
  * Sets the duplicate checking window in the the NATSJetStreamConfig.  A TimeSpan.Zero
  * disables duplicate checking.  Duplicate checking is disabled by default.
  * @param window duration to hold message ids for duplicate checking.
  * @return Builder
  */
 public JetStreamConfigBuilder SetDuplicateWindow(TimeSpan window)
 {
     this.DuplicateWindow = NATSJetStreamValidator.ValidateTimeSpanNotRequiredGtOrEqZero(window);
     return(this);
 }
コード例 #2
0
 /**
  * Sets the Maximum age in the NATSJetStreamConfig.
  * @param MaxAge the Maximum message age
  * @return Builder
  */
 public JetStreamConfigBuilder SetMaxAge(TimeSpan maxAge)
 {
     this.MaxAge = NATSJetStreamValidator.ValidateTimeSpanNotRequiredGtOrEqZero(maxAge);
     return(this);
 }