Search in sources :

Example 11 with MessageAck

use of org.apache.activemq.command.MessageAck in project activemq-artemis by apache.

the class MessageAckTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    MessageAck info = (MessageAck) object;
    info.setDestination(createActiveMQDestination("Destination:1"));
    info.setTransactionId(createTransactionId("TransactionId:2"));
    info.setConsumerId(createConsumerId("ConsumerId:3"));
    info.setAckType((byte) 1);
    info.setFirstMessageId(createMessageId("FirstMessageId:4"));
    info.setLastMessageId(createMessageId("LastMessageId:5"));
    info.setMessageCount(1);
}
Also used : MessageAck(org.apache.activemq.command.MessageAck)

Example 12 with MessageAck

use of org.apache.activemq.command.MessageAck in project activemq-artemis by apache.

the class MessageAckTest method createObject.

@Override
public Object createObject() throws Exception {
    MessageAck info = new MessageAck();
    populateObject(info);
    return info;
}
Also used : MessageAck(org.apache.activemq.command.MessageAck)

Example 13 with MessageAck

use of org.apache.activemq.command.MessageAck in project activemq-artemis by apache.

the class MessageAckTest method createObject.

@Override
public Object createObject() throws Exception {
    MessageAck info = new MessageAck();
    populateObject(info);
    return info;
}
Also used : MessageAck(org.apache.activemq.command.MessageAck)

Example 14 with MessageAck

use of org.apache.activemq.command.MessageAck in project activemq-artemis by apache.

the class MessageAckTest method createObject.

@Override
public Object createObject() throws Exception {
    MessageAck info = new MessageAck();
    populateObject(info);
    return info;
}
Also used : MessageAck(org.apache.activemq.command.MessageAck)

Example 15 with MessageAck

use of org.apache.activemq.command.MessageAck in project activemq-artemis by apache.

the class MessageAckTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    MessageAck info = (MessageAck) object;
    info.setDestination(createActiveMQDestination("Destination:1"));
    info.setTransactionId(createTransactionId("TransactionId:2"));
    info.setConsumerId(createConsumerId("ConsumerId:3"));
    info.setAckType((byte) 1);
    info.setFirstMessageId(createMessageId("FirstMessageId:4"));
    info.setLastMessageId(createMessageId("LastMessageId:5"));
    info.setMessageCount(1);
}
Also used : MessageAck(org.apache.activemq.command.MessageAck)

Aggregations

MessageAck (org.apache.activemq.command.MessageAck)38 ConnectionInfo (org.apache.activemq.command.ConnectionInfo)15 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)15 Message (org.apache.activemq.command.Message)15 ProducerInfo (org.apache.activemq.command.ProducerInfo)14 SessionInfo (org.apache.activemq.command.SessionInfo)14 ActiveMQDestination (org.apache.activemq.command.ActiveMQDestination)12 XATransactionId (org.apache.activemq.command.XATransactionId)9 DataArrayResponse (org.apache.activemq.command.DataArrayResponse)5 TransactionInfo (org.apache.activemq.command.TransactionInfo)5 ActiveMQQueue (org.apache.activemq.command.ActiveMQQueue)4 LocalTransactionId (org.apache.activemq.command.LocalTransactionId)4 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)3 ConnectionId (org.apache.activemq.command.ConnectionId)2 RemoveInfo (org.apache.activemq.command.RemoveInfo)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 HashSet (java.util.HashSet)1 Vector (java.util.Vector)1 CountDownLatch (java.util.concurrent.CountDownLatch)1