Search in sources :

Example 1 with MessagePull

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

the class MessagePullTest method createObject.

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

Example 2 with MessagePull

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

the class MessagePullTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    MessagePull info = (MessagePull) object;
    info.setConsumerId(createConsumerId("ConsumerId:1"));
    info.setDestination(createActiveMQDestination("Destination:2"));
    info.setTimeout(1);
    info.setCorrelationId("CorrelationId:3");
    info.setMessageId(createMessageId("MessageId:4"));
}
Also used : MessagePull(org.apache.activemq.command.MessagePull)

Example 3 with MessagePull

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

the class MessagePullTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    MessagePull info = (MessagePull) object;
    info.setConsumerId(createConsumerId("ConsumerId:1"));
    info.setDestination(createActiveMQDestination("Destination:2"));
    info.setTimeout(1);
    info.setCorrelationId("CorrelationId:3");
    info.setMessageId(createMessageId("MessageId:4"));
}
Also used : MessagePull(org.apache.activemq.command.MessagePull)

Example 4 with MessagePull

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

the class MessagePullTest method createObject.

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

Example 5 with MessagePull

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

the class MessagePullTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    MessagePull info = (MessagePull) object;
    info.setConsumerId(createConsumerId("ConsumerId:1"));
    info.setDestination(createActiveMQDestination("Destination:2"));
    info.setTimeout(1);
    info.setCorrelationId("CorrelationId:3");
    info.setMessageId(createMessageId("MessageId:4"));
}
Also used : MessagePull(org.apache.activemq.command.MessagePull)

Aggregations

MessagePull (org.apache.activemq.command.MessagePull)17 Vector (java.util.Vector)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 AtomicLong (java.util.concurrent.atomic.AtomicLong)1 ObjectName (javax.management.ObjectName)1 ConnectionContext (org.apache.activemq.broker.ConnectionContext)1 ProducerBrokerExchange (org.apache.activemq.broker.ProducerBrokerExchange)1 ActiveMQDestination (org.apache.activemq.command.ActiveMQDestination)1 ActiveMQQueue (org.apache.activemq.command.ActiveMQQueue)1 ActiveMQTextMessage (org.apache.activemq.command.ActiveMQTextMessage)1 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)1 Message (org.apache.activemq.command.Message)1 MessageAck (org.apache.activemq.command.MessageAck)1 MessageDispatchNotification (org.apache.activemq.command.MessageDispatchNotification)1 MessageId (org.apache.activemq.command.MessageId)1 ProducerInfo (org.apache.activemq.command.ProducerInfo)1 MessageEvaluationContext (org.apache.activemq.filter.MessageEvaluationContext)1 ProducerState (org.apache.activemq.state.ProducerState)1 MessageStore (org.apache.activemq.store.MessageStore)1 PersistenceAdapter (org.apache.activemq.store.PersistenceAdapter)1