コード例 #1
0
ファイル: JMSBridgeImpl.java プロジェクト: dcaillia/hornetq
 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");
 }
コード例 #2
0
ファイル: JMSBridgeImpl.java プロジェクト: dcaillia/hornetq
  public synchronized void setMaxBatchSize(final int size) {
    checkBridgeNotStarted();
    JMSBridgeImpl.checkMaxBatchSize(size);

    maxBatchSize = size;
  }