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

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

    targetCff = cff;
  }
Exemplo n.º 4
0
  public void setTargetDestinationFactory(final DestinationFactory dest) {
    checkBridgeNotStarted();
    JMSBridgeImpl.checkNotNull(dest, "TargetDestinationFactory");

    targetDestinationFactory = dest;
  }