Package com.gemstone.gemfire.cache.util

Examples of com.gemstone.gemfire.cache.util.GatewayQueueAttributes


        gw.setSocketBufferSize(gateway.getSocketBufferSize());
      }

      if (gateway.getQueue() != null) {
        GatewayQueue queue = gateway.getQueue();
        GatewayQueueAttributes queueAttributes = gw.getQueueAttributes();
        if (queue.getAlertThreshold() != null) {
          queueAttributes.setAlertThreshold(queue.getAlertThreshold());
        }
        if (queue.getEnableBatchConflation() != null) {
          queueAttributes.setBatchConflation(queue.getEnableBatchConflation());
        }
        if (queue.getBatchSize() != null) {
          queueAttributes.setBatchSize(queue.getBatchSize());
        }
        if (queue.getBatchTimeInterval() != null) {
          queueAttributes.setBatchTimeInterval(queue.getBatchTimeInterval());
        }

        if (queue.getDiskStoreRef() != null) {
          boolean persistent = (queue.getPersistent() == null) ? Boolean.TRUE : queue.getPersistent();
          Assert.isTrue(persistent, "specifying a disk store requires persistent property to be true");
          queueAttributes.setDiskStoreName(queue.getDiskStoreRef());
        }

        if (queue.getPersistent() != null) {
          queueAttributes.setEnablePersistence(queue.getPersistent());
        }

        if (queue.getMaximumQueueMemory() != null) {
          queueAttributes.setMaximumQueueMemory(queue.getMaximumQueueMemory());
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.util.GatewayQueueAttributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.