Package org.apache.activemq.command
Class BrokerSubscriptionInfo
- java.lang.Object
-
- org.apache.activemq.command.BaseCommand
-
- org.apache.activemq.command.BrokerSubscriptionInfo
-
- All Implemented Interfaces:
Command
,DataStructure
public class BrokerSubscriptionInfo extends BaseCommand
Used to represent the durable subscriptions contained by the broker This is used to synchronize durable subs on bridge creation
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description BrokerSubscriptionInfo()
BrokerSubscriptionInfo(String brokerName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrokerSubscriptionInfo
copy()
BrokerId
getBrokerId()
String
getBrokerName()
byte
getDataStructureType()
ConsumerInfo[]
getSubscriptionInfos()
void
setBrokerId(BrokerId brokerId)
void
setBrokerName(String brokerName)
void
setSubscriptionInfos(ConsumerInfo[] subscriptionInfos)
Response
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 Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BrokerSubscriptionInfo
public BrokerSubscriptionInfo()
-
BrokerSubscriptionInfo
public BrokerSubscriptionInfo(String brokerName)
-
-
Method Detail
-
copy
public BrokerSubscriptionInfo copy()
-
visit
public Response visit(CommandVisitor visitor) throws Exception
- Throws:
Exception
-
getDataStructureType
public byte getDataStructureType()
- Returns:
- The type of the data structure
-
getBrokerId
public BrokerId getBrokerId()
-
setBrokerId
public void setBrokerId(BrokerId brokerId)
-
getBrokerName
public String getBrokerName()
-
setBrokerName
public void setBrokerName(String brokerName)
-
getSubscriptionInfos
public ConsumerInfo[] getSubscriptionInfos()
-
setSubscriptionInfos
public void setSubscriptionInfos(ConsumerInfo[] subscriptionInfos)
-
-