Search in sources :

Example 16 with ConsumerId

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

the class ConsumerIdTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConsumerId info = (ConsumerId) object;
    info.setConnectionId("ConnectionId:1");
    info.setSessionId(1);
    info.setValue(2);
}
Also used : ConsumerId(org.apache.activemq.command.ConsumerId)

Example 17 with ConsumerId

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

the class ConsumerIdTest method createObject.

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

Example 18 with ConsumerId

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

the class ConsumerIdTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConsumerId info = (ConsumerId) object;
    info.setConnectionId("ConnectionId:1");
    info.setSessionId(1);
    info.setValue(2);
}
Also used : ConsumerId(org.apache.activemq.command.ConsumerId)

Example 19 with ConsumerId

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

the class MessageGroupMapTest method createConsumerId.

protected ConsumerId createConsumerId() {
    ConnectionId connectionId = new ConnectionId("" + ++idCounter);
    SessionId sessionId = new SessionId(connectionId, ++idCounter);
    ConsumerId answer = new ConsumerId(sessionId, ++idCounter);
    return answer;
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId) ConsumerId(org.apache.activemq.command.ConsumerId) SessionId(org.apache.activemq.command.SessionId)

Example 20 with ConsumerId

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

the class MessageGroupMapTest method assertGet.

protected void assertGet(String groupdId, ConsumerId expected) {
    ConsumerId actual = map.get(groupdId);
    assertEquals("Entry for groupId: " + groupdId, expected, actual);
}
Also used : ConsumerId(org.apache.activemq.command.ConsumerId)

Aggregations

ConsumerId (org.apache.activemq.command.ConsumerId)23 SessionId (org.apache.activemq.command.SessionId)3 ConnectionId (org.apache.activemq.command.ConnectionId)2 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)2 AMQConsumerBrokerExchange (org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumerBrokerExchange)1 BrokerService (org.apache.activemq.broker.BrokerService)1 ActiveMQMessage (org.apache.activemq.command.ActiveMQMessage)1 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)1 BrokerId (org.apache.activemq.command.BrokerId)1 BrokerInfo (org.apache.activemq.command.BrokerInfo)1 ConnectionInfo (org.apache.activemq.command.ConnectionInfo)1 MessageDispatch (org.apache.activemq.command.MessageDispatch)1 RemoveInfo (org.apache.activemq.command.RemoveInfo)1 Transport (org.apache.activemq.transport.Transport)1 TransportListener (org.apache.activemq.transport.TransportListener)1 Before (org.junit.Before)1