use of org.apache.activemq.artemis.rest.util.CustomHeaderLinkStrategy in project activemq-artemis by apache.
the class ClientAckQueueTest method testSuccessFirstX2.
@Test
public void testSuccessFirstX2() throws Exception {
String testName = "testSuccessFirstX2";
QueueDeployment queueDeployment = new QueueDeployment(testName, true);
manager.getQueueManager().deploy(queueDeployment);
manager.getQueueManager().setLinkStrategy(new LinkHeaderLinkStrategy());
testSuccessFirst(1, testName);
manager.getQueueManager().setLinkStrategy(new CustomHeaderLinkStrategy());
testSuccessFirst(3, testName);
}
use of org.apache.activemq.artemis.rest.util.CustomHeaderLinkStrategy in project activemq-artemis by apache.
the class ClientAckQueueTest method testPullX2.
@Test
public void testPullX2() throws Exception {
String testName = "testPullX2";
QueueDeployment queueDeployment = new QueueDeployment(testName, true);
manager.getQueueManager().deploy(queueDeployment);
manager.getQueueManager().setLinkStrategy(new LinkHeaderLinkStrategy());
testPull(1, testName);
manager.getQueueManager().setLinkStrategy(new CustomHeaderLinkStrategy());
testPull(4, testName);
}
use of org.apache.activemq.artemis.rest.util.CustomHeaderLinkStrategy in project activemq-artemis by apache.
the class ClientAckQueueTest method testAckTimeoutX2.
@Test
public void testAckTimeoutX2() throws Exception {
QueueDeployment deployment = new QueueDeployment();
deployment.setConsumerSessionTimeoutSeconds(1);
deployment.setDuplicatesAllowed(true);
deployment.setDurableSend(false);
deployment.setName("testAck");
manager.getQueueManager().deploy(deployment);
manager.getQueueManager().setLinkStrategy(new LinkHeaderLinkStrategy());
testAckTimeout();
manager.getQueueManager().setLinkStrategy(new CustomHeaderLinkStrategy());
testAckTimeout();
}
use of org.apache.activemq.artemis.rest.util.CustomHeaderLinkStrategy in project activemq-artemis by apache.
the class ClientAckQueueTest method testReconnectX2.
@Test
public void testReconnectX2() throws Exception {
String testName = "testReconnectX2";
QueueDeployment queueDeployment = new QueueDeployment(testName, true);
manager.getQueueManager().deploy(queueDeployment);
manager.getQueueManager().setLinkStrategy(new LinkHeaderLinkStrategy());
testReconnect(testName);
manager.getQueueManager().setLinkStrategy(new CustomHeaderLinkStrategy());
testReconnect(testName);
}
use of org.apache.activemq.artemis.rest.util.CustomHeaderLinkStrategy in project activemq-artemis by apache.
the class ClientAckTopicTest method testAckTimeoutX2.
@Test
public void testAckTimeoutX2() throws Exception {
TopicDeployment deployment = new TopicDeployment();
deployment.setConsumerSessionTimeoutSeconds(1);
deployment.setDuplicatesAllowed(true);
deployment.setDurableSend(false);
deployment.setName("testAck");
manager.getTopicManager().deploy(deployment);
manager.getTopicManager().setLinkStrategy(new LinkHeaderLinkStrategy());
testAckTimeout();
manager.getTopicManager().setLinkStrategy(new CustomHeaderLinkStrategy());
testAckTimeout();
}
Aggregations