public class AMQTopic extends AMQDestination implements javax.jms.Topic
AMQDestination.AddressOption, AMQDestination.Binding, AMQDestination.DestSyntaxQUEUE_TYPE, TOPIC_TYPE, UNKNOWN_TYPE| Modifier | Constructor and Description |
|---|---|
|
AMQTopic() |
|
AMQTopic(Address address) |
|
AMQTopic(AMQConnection conn,
String routingKey) |
|
AMQTopic(AMQShortString exchangeName,
AMQShortString routingKey) |
|
AMQTopic(AMQShortString exchange,
AMQShortString routingKey,
AMQShortString queueName) |
|
AMQTopic(AMQShortString exchange,
AMQShortString routingKey,
AMQShortString queueName,
AMQShortString[] bindingKeys) |
protected |
AMQTopic(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString name,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable) |
protected |
AMQTopic(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable) |
protected |
AMQTopic(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable,
AMQShortString[] bindingKeys) |
|
AMQTopic(AMQShortString exchangeName,
AMQShortString name,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable) |
|
AMQTopic(AMQShortString exchangeName,
String routingKey) |
|
AMQTopic(BindingURL binding)
Constructor for use in creating a topic using a BindingURL.
|
|
AMQTopic(String address) |
|
AMQTopic(String exchangeName,
String routingKey) |
| Modifier and Type | Method and Description |
|---|---|
static AMQTopic |
createDurableTopic(javax.jms.Topic topic,
String subscriptionName,
AMQConnection connection) |
boolean |
equals(Object o) |
static AMQShortString |
getDurableTopicQueueName(String subscriptionName,
AMQConnection connection) |
AMQShortString |
getExchangeName() |
AMQShortString |
getRoutingKey() |
String |
getTopicName() |
int |
hashCode() |
boolean |
isNameRequired() |
void |
setQueueName(String queueName)
Override since the queue is always private and we must ensure it remains null.
|
copyDestination, createDestination, createDestination, getAddress, getAddressName, getAddressType, getAddrHelper, getAMQQueueName, getAssert, getBindingKeys, getCreate, getDefaultDestSyntax, getDelete, getDestinationString, getDestSyntax, getDestType, getEncodedName, getExchangeClass, getInfoFromBindingURL, getLink, getName, getNode, getQueueName, getReference, getRejectBehaviour, getSubject, isAddressResolved, isAutoDelete, isBrowseOnly, isCheckedForQueueBinding, isDurable, isExchangeAutoDelete, isExchangeDurable, isExchangeExistsChecked, isExchangeInternal, isExclusive, isQueue, isResolvedAfter, isTopic, neverDeclare, parseDestinationString, readExternal, setAddress, setAddressName, setAddressResolved, setAddressType, setAddrHelper, setAssert, setAutoDelete, setCheckedForQueueBinding, setCreate, setDelete, setDestinationString, setDestSyntax, setDurable, setExchangeClass, setExchangeExistsChecked, setExchangeName, setExclusive, setLink, setName, setNode, setQueueName, setRoutingKey, setSubject, stripSyntaxPrefix, toString, toURL, writeExternalpublic AMQTopic(String address) throws URISyntaxException
URISyntaxExceptionpublic AMQTopic(Address address)
public AMQTopic()
public AMQTopic(BindingURL binding)
binding - The binding url object.public AMQTopic(AMQShortString exchange, AMQShortString routingKey, AMQShortString queueName)
public AMQTopic(AMQShortString exchange, AMQShortString routingKey, AMQShortString queueName, AMQShortString[] bindingKeys)
public AMQTopic(AMQConnection conn, String routingKey)
public AMQTopic(AMQShortString exchangeName, String routingKey)
public AMQTopic(AMQShortString exchangeName, AMQShortString routingKey)
public AMQTopic(AMQShortString exchangeName, AMQShortString name, boolean isAutoDelete, AMQShortString queueName, boolean isDurable)
protected AMQTopic(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString name, boolean isAutoDelete, AMQShortString queueName, boolean isDurable)
protected AMQTopic(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName, boolean isDurable)
protected AMQTopic(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName, boolean isDurable, AMQShortString[] bindingKeys)
public static AMQTopic createDurableTopic(javax.jms.Topic topic, String subscriptionName, AMQConnection connection) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic static AMQShortString getDurableTopicQueueName(String subscriptionName, AMQConnection connection) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic String getTopicName() throws javax.jms.JMSException
getTopicName in interface javax.jms.Topicjavax.jms.JMSExceptionpublic AMQShortString getExchangeName()
getExchangeName in class AMQDestinationpublic AMQShortString getRoutingKey()
getRoutingKey in class AMQDestinationpublic boolean isNameRequired()
isNameRequired in class AMQDestinationpublic void setQueueName(String queueName)
This is relatively nasty but it is difficult to come up with a more elegant solution, given the requirement in the case on AMQQueue and possibly other AMQDestination subclasses to use the underlying queue name even where it is server generated.
public boolean equals(Object o)
equals in class AMQDestinationpublic int hashCode()
hashCode in class AMQDestinationCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.