Package org.apache.activemq.command
Class ConsumerControl
java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.ConsumerControl
- All Implemented Interfaces:
Command
,DataStructure
Used to start and stop transports as well as terminating clients.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected ConsumerId
static final byte
protected ActiveMQDestination
protected boolean
protected int
protected boolean
protected boolean
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
int
boolean
isClose()
boolean
boolean
isFlush()
boolean
isStart()
boolean
isStop()
void
setClose
(boolean close) void
setConsumerId
(ConsumerId consumerId) void
setDestination
(ActiveMQDestination destination) void
setFlush
(boolean flush) void
setPrefetch
(int prefetch) void
setStart
(boolean start) void
setStop
(boolean stop) visit
(CommandVisitor visitor) Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, 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:
-
consumerId
-
close
protected boolean close -
stop
protected boolean stop -
start
protected boolean start -
flush
protected boolean flush -
prefetch
protected int prefetch -
destination
-
-
Constructor Details
-
ConsumerControl
public ConsumerControl()
-
-
Method Details
-
getDestination
- Returns:
- Returns the destination.
-
setDestination
-
getDataStructureType
public byte getDataStructureType()- Returns:
- The type of the data structure
-
visit
- Throws:
Exception
-
isConsumerControl
public boolean isConsumerControl()- Specified by:
isConsumerControl
in interfaceCommand
- Overrides:
isConsumerControl
in classBaseCommand
-
isClose
public boolean isClose()- Returns:
- Returns the close.
-
setClose
public void setClose(boolean close) - Parameters:
close
- The new value to assign the close state flag.
-
getConsumerId
- Returns:
- Returns the consumerId.
-
setConsumerId
- Parameters:
consumerId
- The consumerId to set.
-
getPrefetch
public int getPrefetch()- Returns:
- Returns the prefetch.
-
setPrefetch
public void setPrefetch(int prefetch) - Parameters:
prefetch
- The prefetch to set.
-
isFlush
public boolean isFlush()- Returns:
- the flush
-
setFlush
public void setFlush(boolean flush) - Parameters:
flush
- The flush value to set on this command.
-
isStart
public boolean isStart()- Returns:
- the start
-
setStart
public void setStart(boolean start) - Parameters:
start
- The start value to set on this command.
-
isStop
public boolean isStop()- Returns:
- the stop
-
setStop
public void setStop(boolean stop) - Parameters:
stop
- the stop value to set on this Command.
-