Search in sources :

Example 1 with TaskRunnerFactory

use of org.apache.activemq.thread.TaskRunnerFactory in project activemq-artemis by apache.

the class SubscriptionAddRemoveQueueTest method setUp.

@Override
public void setUp() throws Exception {
    BrokerService brokerService = new BrokerService();
    brokerService.start();
    DestinationStatistics parentStats = new DestinationStatistics();
    parentStats.setEnabled(true);
    TaskRunnerFactory taskFactory = new TaskRunnerFactory();
    MessageStore store = null;
    info.setDestination(destination);
    info.setPrefetchSize(100);
    producerBrokerExchange.setProducerState(producerState);
    producerBrokerExchange.setConnectionContext(context);
    queue = new Queue(brokerService, destination, store, parentStats, taskFactory);
    queue.initialize();
}
Also used : MessageStore(org.apache.activemq.store.MessageStore) BrokerService(org.apache.activemq.broker.BrokerService) ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue) TaskRunnerFactory(org.apache.activemq.thread.TaskRunnerFactory)

Aggregations

BrokerService (org.apache.activemq.broker.BrokerService)1 ActiveMQQueue (org.apache.activemq.command.ActiveMQQueue)1 MessageStore (org.apache.activemq.store.MessageStore)1 TaskRunnerFactory (org.apache.activemq.thread.TaskRunnerFactory)1