Exemple #1
0
 private synchronized void checkParams() {
   checkNotNull(sourceCff, "sourceCff");
   checkNotNull(targetCff, "targetCff");
   checkNotNull(sourceDestinationFactory, "sourceDestinationFactory");
   checkNotNull(targetDestinationFactory, "targetDestinationFactory");
   checkValidValue(failureRetryInterval, "failureRetryInterval");
   checkValidValue(maxRetries, "maxRetries");
   if (failureRetryInterval == -1 && maxRetries > 0) {
     throw new IllegalArgumentException(
         "If failureRetryInterval == -1 maxRetries must be set to -1");
   }
   checkMaxBatchSize(maxBatchSize);
   checkValidValue(maxBatchTime, "maxBatchTime");
   checkNotNull(qualityOfServiceMode, "qualityOfServiceMode");
 }
Exemple #2
0
  public synchronized void setMaxBatchSize(final int size) {
    checkBridgeNotStarted();
    JMSBridgeImpl.checkMaxBatchSize(size);

    maxBatchSize = size;
  }