Package org.apache.activemq.command
Class ProducerAck
java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.ProducerAck
- All Implemented Interfaces:
Command
,DataStructure
A ProducerAck command is sent by a broker to a producer to let it know it has
received and processed messages that it has produced. The producer will be
flow controlled if it does not receive ProducerAck commands back from the
broker.
-
Field Summary
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(ProducerAck copy) byte
The producer id that this ack message is destined for.int
getSize()
The number of bytes that are being acked.void
setProducerId
(ProducerId producerId) void
setSize
(int size) visit
(CommandVisitor visitor) Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
producerId
-
size
protected int size
-
-
Constructor Details
-
ProducerAck
public ProducerAck() -
ProducerAck
-
-
Method Details
-
copy
-
getDataStructureType
public byte getDataStructureType()- Returns:
- The type of the data structure
-
visit
- Throws:
Exception
-
getProducerId
The producer id that this ack message is destined for. -
setProducerId
-
getSize
public int getSize()The number of bytes that are being acked. -
setSize
public void setSize(int size)
-