Search in sources :

Example 11 with ConsumerControl

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

the class ConsumerControlTest method createObject.

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

Example 12 with ConsumerControl

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

the class ConsumerControlTest method createObject.

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

Example 13 with ConsumerControl

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

the class ConsumerControlTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConsumerControl info = (ConsumerControl) object;
    info.setClose(true);
    info.setConsumerId(createConsumerId("ConsumerId:1"));
    info.setPrefetch(1);
}
Also used : ConsumerControl(org.apache.activemq.command.ConsumerControl)

Example 14 with ConsumerControl

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

the class ConsumerControlTest method createObject.

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

Example 15 with ConsumerControl

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

the class ConsumerControlTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConsumerControl info = (ConsumerControl) object;
    info.setDestination(createActiveMQDestination("Destination:1"));
    info.setClose(true);
    info.setConsumerId(createConsumerId("ConsumerId:2"));
    info.setPrefetch(1);
    info.setFlush(false);
    info.setStart(true);
    info.setStop(false);
}
Also used : ConsumerControl(org.apache.activemq.command.ConsumerControl)

Aggregations

ConsumerControl (org.apache.activemq.command.ConsumerControl)20 Session (javax.jms.Session)1 ActiveMQQueueExistsException (org.apache.activemq.artemis.api.core.ActiveMQQueueExistsException)1 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)1 ServerConsumerImpl (org.apache.activemq.artemis.core.server.impl.ServerConsumerImpl)1 AddressSettings (org.apache.activemq.artemis.core.settings.impl.AddressSettings)1 ExceptionResponse (org.apache.activemq.command.ExceptionResponse)1