public class MessagePull extends BaseCommand
Modifier and Type | Field and Description |
---|---|
protected ConsumerId |
consumerId |
static byte |
DATA_STRUCTURE_TYPE |
protected ActiveMQDestination |
destination |
protected long |
timeout |
commandId, responseRequired
Constructor and Description |
---|
MessagePull() |
Modifier and Type | Method and Description |
---|---|
void |
configure(ConsumerInfo info)
Configures a message pull from the consumer information
|
ConsumerId |
getConsumerId() |
java.lang.String |
getCorrelationId()
An optional correlation ID which could be used by a broker to decide which messages are pulled
on demand from a queue for a consumer
|
byte |
getDataStructureType() |
ActiveMQDestination |
getDestination() |
MessageId |
getMessageId()
An optional message ID which could be used by a broker to decide which messages are pulled
on demand from a queue for a consumer
|
long |
getTimeout() |
boolean |
isTracked() |
void |
setConsumerId(ConsumerId consumerId) |
void |
setCorrelationId(java.lang.String correlationId) |
void |
setDestination(ActiveMQDestination destination) |
void |
setMessageId(MessageId messageId) |
void |
setTimeout(long timeout) |
void |
setTracked(boolean tracked) |
Response |
visit(CommandVisitor visitor) |
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
public static final byte DATA_STRUCTURE_TYPE
protected ConsumerId consumerId
protected ActiveMQDestination destination
protected long timeout
public byte getDataStructureType()
public Response visit(CommandVisitor visitor) throws java.lang.Exception
java.lang.Exception
public void configure(ConsumerInfo info)
public ConsumerId getConsumerId()
public void setConsumerId(ConsumerId consumerId)
public ActiveMQDestination getDestination()
public void setDestination(ActiveMQDestination destination)
public long getTimeout()
public void setTimeout(long timeout)
public java.lang.String getCorrelationId()
public void setCorrelationId(java.lang.String correlationId)
public MessageId getMessageId()
public void setMessageId(MessageId messageId)
public void setTracked(boolean tracked)
public boolean isTracked()
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.