private static object[] GetParams(int i, int messageCount, int concurrency, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode) { return GetParams(i, messageCount, concurrency, acknowledgeMode, 1); }
/// <summary> /// Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started. /// </summary> /// <param name="connectionFactory"> /// The connection factory. /// </param> /// <param name="activeObjectCounter"> /// The active object counter. /// </param> /// <param name="acknowledgeMode"> /// The acknowledge mode. /// </param> /// <param name="transactional"> /// The transactional. /// </param> /// <param name="prefetchCount"> /// The prefetch count. /// </param> /// <param name="queues"> /// The queues. /// </param> public BlockingQueueConsumer(IConnectionFactory connectionFactory, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, int prefetchSize, params string[] queues) { this.connectionFactory = connectionFactory; this.activeObjectCounter = activeObjectCounter; this.acknowledgeMode = acknowledgeMode; this.transactional = transactional; this.prefetchCount = prefetchCount; this.prefetchSize = prefetchSize; this.queues = queues; }
private static object[] GetParams(int i, int messageCount, int concurrency, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, int txSize) { // For this test always us a transaction if it makes sense... return GetParams(i, messageCount, concurrency, acknowledgeMode, acknowledgeMode.TransactionAllowed(), txSize); }
private static object[] GetParams(int i, int messageCount, int concurrency, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int txSize) { // "i" is just a counter to make it easier to identify the test in the log return new object[] { messageCount, concurrency, acknowledgeMode, transactional, txSize, false }; }
/// <summary>Initializes a new instance of the <see cref="SimpleMessageListenerContainerIntegrationTests"/> class.</summary> /// <param name="messageCount">The message count.</param> /// <param name="concurrency">The concurrency.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">The transactional.</param> /// <param name="txSize">The tx size.</param> /// <param name="externalTransaction">The external transaction.</param> public SimpleMessageListenerContainerIntegrationTests(int messageCount, int concurrency, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int txSize, bool externalTransaction) { this.messageCount = messageCount; this.concurrentConsumers = concurrency; this.acknowledgeMode = acknowledgeMode; this.transactional = transactional; this.txSize = txSize; this.externalTransaction = externalTransaction; }
/// <summary>Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started.</summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="messagePropertiesConverter">The message properties converter.</param> /// <param name="activeObjectCounter">The active object counter.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">if set to <c>true</c> [transactional].</param> /// <param name="prefetchCount">The prefetch count.</param> /// <param name="queues">The queues.</param> public BlockingQueueConsumer( IConnectionFactory connectionFactory, IMessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, params string[] queues) : this(connectionFactory, messagePropertiesConverter, activeObjectCounter, acknowledgeMode, transactional, prefetchCount, true, queues) { }
/// <summary>Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started.</summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="messagePropertiesConverter">The message properties converter.</param> /// <param name="activeObjectCounter">The active object counter.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">if set to <c>true</c> [transactional].</param> /// <param name="prefetchCount">The prefetch count.</param> /// <param name="defaultRequeueRejected">The default requeue rejected.</param> /// <param name="queues">The queues.</param> public BlockingQueueConsumer( IConnectionFactory connectionFactory, IMessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, bool defaultRequeueRejected, params string[] queues) { this.connectionFactory = connectionFactory; this.messagePropertiesConverter = messagePropertiesConverter; this.activeObjectCounter = activeObjectCounter; this.acknowledgeMode = acknowledgeMode; this.transactional = transactional; this.prefetchCount = prefetchCount; this.defaultRequeueRejected = defaultRequeueRejected; this.queues = queues; }