Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
Builder com.griddynamics.jagger.user.test.configurations.limits.JLimit.Builder.withExactLimits ( LowErrThresh  lowErrThresh,
LowWarnThresh  lowWarnThresh,
UpWarnThresh  upWarnThresh,
UpErrThresh  upErrThresh 
)

Set all limits.

Cannot be initialized more than once.

Parameters
lowErrThreshrelative lower error threshold.
lowWarnThreshrelative lower warning threshold.
upWarnThreshrelative upper warning threshold.
upErrThreshrelative upper error threshold.

Definition at line 153 of file JLimit.java.

153  {
154  if (initialized) {
155  throw new IllegalArgumentException("It is already initialized with values: " +
156  this.lowErrThresh + ", " + this.lowWarnThresh + ", " + this.upWarnThresh + ", " + this.upErrThresh);
157  }
158  Objects.requireNonNull(lowWarnThresh);
159  Objects.requireNonNull(lowErrThresh);
160  Objects.requireNonNull(upWarnThresh);
161  Objects.requireNonNull(upErrThresh);
162 
163  this.lowErrThresh = lowErrThresh;
164  this.upErrThresh = upErrThresh;
165  this.lowWarnThresh = lowWarnThresh;
166  this.upWarnThresh = upWarnThresh;
167 
168  initialized = true;
169 
170  return this;
171  }