if (generateDefaults() || asyncEventQueue.isParallel() != GatewaySender.DEFAULT_IS_PARALLEL) atts.addAttribute("", "", PARALLEL, "", String.valueOf(asyncEventQueue.isParallel()));
public static void validateAsyncEventQueue(AsyncEventQueue eventChannelFromXml, AsyncEventQueue channel) { assertEquals("AsyncEventQueue id doesn't match", eventChannelFromXml.getId(), channel.getId()); assertEquals("AsyncEventQueue batchSize doesn't match", eventChannelFromXml.getBatchSize(), channel.getBatchSize()); assertEquals("AsyncEventQueue batchTimeInterval doesn't match", eventChannelFromXml.getBatchTimeInterval(), channel.getBatchTimeInterval()); assertEquals("AsyncEventQueue batchConflationEnabled doesn't match", eventChannelFromXml.isBatchConflationEnabled(), channel.isBatchConflationEnabled()); assertEquals("AsyncEventQueue persistent doesn't match", eventChannelFromXml.isPersistent(), channel.isPersistent()); assertEquals("AsyncEventQueue diskStoreName doesn't match", eventChannelFromXml.getDiskStoreName(), channel.getDiskStoreName()); assertEquals("AsyncEventQueue isDiskSynchronous doesn't match", eventChannelFromXml.isDiskSynchronous(), channel.isDiskSynchronous()); assertEquals("AsyncEventQueue maximumQueueMemory doesn't match", eventChannelFromXml.getMaximumQueueMemory(), channel.getMaximumQueueMemory()); assertEquals("AsyncEventQueue Parallel doesn't match", eventChannelFromXml.isParallel(), channel.isParallel()); assertEquals("AsyncEventQueue GatewayEventFilters doesn't match", eventChannelFromXml.getGatewayEventFilters().size(), channel.getGatewayEventFilters().size()); assertTrue("AsyncEventQueue should be instanceof Creation", eventChannelFromXml instanceof AsyncEventQueueCreation); assertTrue("AsyncEventQueue should be instanceof Impl", channel instanceof AsyncEventQueueImpl); }
public void configureAsyncEventQueue(AsyncEventQueue asyncQueueCreation) { gatewaySenderAttributes.batchSize = asyncQueueCreation.getBatchSize(); gatewaySenderAttributes.batchTimeInterval = asyncQueueCreation.getBatchTimeInterval(); gatewaySenderAttributes.isBatchConflationEnabled = asyncQueueCreation.isBatchConflationEnabled(); gatewaySenderAttributes.isPersistenceEnabled = asyncQueueCreation.isPersistent(); gatewaySenderAttributes.diskStoreName = asyncQueueCreation.getDiskStoreName(); gatewaySenderAttributes.isDiskSynchronous = asyncQueueCreation.isDiskSynchronous(); gatewaySenderAttributes.maximumQueueMemory = asyncQueueCreation.getMaximumQueueMemory(); gatewaySenderAttributes.isParallel = asyncQueueCreation.isParallel(); gatewaySenderAttributes.isBucketSorted = ((AsyncEventQueueCreation) asyncQueueCreation).isBucketSorted(); gatewaySenderAttributes.dispatcherThreads = asyncQueueCreation.getDispatcherThreads(); gatewaySenderAttributes.policy = asyncQueueCreation.getOrderPolicy(); gatewaySenderAttributes.eventFilters = asyncQueueCreation.getGatewayEventFilters(); gatewaySenderAttributes.eventSubstitutionFilter = asyncQueueCreation.getGatewayEventSubstitutionFilter(); gatewaySenderAttributes.isForInternalUse = true; gatewaySenderAttributes.forwardExpirationDestroy = asyncQueueCreation.isForwardExpirationDestroy(); }
boolean isParallel = false; for (AsyncEventQueue q : asyncQueues) { isParallel = q.isParallel(); if (q.getId().equals(queueId)) { queue = q;
when(mockAsyncEventQueue.isDiskSynchronous()).thenAnswer(newGetter(diskSynchronous)); when(mockAsyncEventQueue.isForwardExpirationDestroy()).thenAnswer(newGetter(forwardExpirationDestroy)); when(mockAsyncEventQueue.isParallel()).thenAnswer(newGetter(parallel)); when(mockAsyncEventQueue.isPersistent()).thenAnswer(newGetter(persistent)); when(mockAsyncEventQueue.isPrimary()).thenReturn(false);
.withDetail(asyncEventQueueKey(asyncEventQueueId, "max-queue-memory"), asyncEventQueue.getMaximumQueueMemory()) .withDetail(asyncEventQueueKey(asyncEventQueueId, "order-policy"), asyncEventQueue.getOrderPolicy()) .withDetail(asyncEventQueueKey(asyncEventQueueId, "parallel"), toYesNoString(asyncEventQueue.isParallel())) .withDetail(asyncEventQueueKey(asyncEventQueueId, "persistent"), toYesNoString(asyncEventQueue.isPersistent())) .withDetail(asyncEventQueueKey(asyncEventQueueId, "primary"), toYesNoString(asyncEventQueue.isPrimary()))