예제 #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");
 }
예제 #2
0
  public synchronized void setQualityOfServiceMode(final QualityOfServiceMode mode) {
    checkBridgeNotStarted();
    JMSBridgeImpl.checkNotNull(mode, "QualityOfServiceMode");

    qualityOfServiceMode = mode;
  }
예제 #3
0
  public synchronized void setTargetConnectionFactoryFactory(final ConnectionFactoryFactory cff) {
    checkBridgeNotStarted();
    JMSBridgeImpl.checkNotNull(cff, "TargetConnectionFactoryFactory");

    targetCff = cff;
  }
예제 #4
0
  public void setTargetDestinationFactory(final DestinationFactory dest) {
    checkBridgeNotStarted();
    JMSBridgeImpl.checkNotNull(dest, "TargetDestinationFactory");

    targetDestinationFactory = dest;
  }