sender.isBatchConflationEnabled())); if (sp.isPersistenceEnabled != sender.isPersistenceEnabled()) { throw new IllegalStateException( String.format( "Cannot create Gateway Sender %s with isPersistentEnabled %s because another cache has the same Gateway Sender defined with isPersistentEnabled %s", sp.Id, sp.isPersistenceEnabled, sender.isPersistenceEnabled()));
public SerialGatewaySenderQueue(AbstractGatewaySender abstractSender, String regionName, CacheListener listener) { // The queue starts out with headKey and tailKey equal to -1 to force // them to be initialized from the region. this.regionName = regionName; this.headKey = -1; this.tailKey.set(-1); this.indexes = new HashMap<String, Map<Object, Long>>(); this.enableConflation = abstractSender.isBatchConflationEnabled(); this.diskStoreName = abstractSender.getDiskStoreName(); this.batchSize = abstractSender.getBatchSize(); this.enablePersistence = abstractSender.isPersistenceEnabled(); if (this.enablePersistence) { this.isDiskSynchronous = abstractSender.isDiskSynchronous(); } else { this.isDiskSynchronous = false; } this.maximumQueueMemory = abstractSender.getMaximumMemeoryPerDispatcherQueue(); this.stats = abstractSender.getStatistics(); initializeRegion(abstractSender, listener); // Increment queue size. Fix for bug 51988. this.stats.incQueueSize(this.region.size()); this.removalThread = new BatchRemovalThread(abstractSender.getCache()); this.removalThread.start(); this.sender = abstractSender; if (logger.isDebugEnabled()) { logger.debug("{}: Contains {} elements", this, size()); } }
pfact.setRedundantCopies(3); // TODO:Kishor : THis need to be handled nicely pfact.setPartitionResolver(new RREventIDResolver()); if (sender.isPersistenceEnabled()) { fact.setDataPolicy(DataPolicy.PERSISTENT_PARTITION); if (sender.isPersistenceEnabled()) fact.setDiskSynchronous(sender.isDiskSynchronous()); else {
return; if (userPR.getDataPolicy().withPersistence() && !sender.isPersistenceEnabled()) { throw new GatewaySenderException( String.format( pfact.setRecoveryDelay(userPR.getPartitionAttributes().getRecoveryDelay()); if (sender.isPersistenceEnabled() && !isAccessor) { fact.setDataPolicy(DataPolicy.PERSISTENT_PARTITION); if (sender.isPersistenceEnabled()) fact.setDiskSynchronous(sender.isDiskSynchronous()); else {