public abstract class AMQDestination extends Object implements javax.jms.Destination, Referenceable, Externalizable
| Modifier and Type | Class and Description |
|---|---|
static class |
AMQDestination.AddressOption |
static class |
AMQDestination.Binding |
static class |
AMQDestination.DestSyntax |
| Modifier and Type | Field and Description |
|---|---|
static int |
QUEUE_TYPE |
static int |
TOPIC_TYPE |
static int |
UNKNOWN_TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
AMQDestination() |
protected |
AMQDestination(Address address) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString destinationName) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
AMQShortString queueName) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
AMQShortString queueName,
AMQShortString[] bindingKeys) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName,
AMQShortString[] bindingKeys) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable,
AMQShortString[] bindingKeys) |
protected |
AMQDestination(AMQShortString exchangeName,
AMQShortString exchangeClass,
AMQShortString routingKey,
boolean isExclusive,
boolean isAutoDelete,
AMQShortString queueName,
boolean isDurable,
AMQShortString[] bindingKeys,
boolean browseOnly) |
protected |
AMQDestination(BindingURL binding) |
protected |
AMQDestination(String str) |
public static final int QUEUE_TYPE
public static final int TOPIC_TYPE
public static final int UNKNOWN_TYPE
protected AMQDestination()
protected AMQDestination(Address address)
protected AMQDestination(String str) throws URISyntaxException
URISyntaxExceptionprotected AMQDestination(BindingURL binding)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, AMQShortString queueName)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, AMQShortString queueName, AMQShortString[] bindingKeys)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString destinationName)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName, AMQShortString[] bindingKeys)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName, boolean isDurable)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName, boolean isDurable, AMQShortString[] bindingKeys)
protected AMQDestination(AMQShortString exchangeName, AMQShortString exchangeClass, AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, AMQShortString queueName, boolean isDurable, AMQShortString[] bindingKeys, boolean browseOnly)
protected void setExclusive(boolean exclusive)
protected AddressHelper getAddrHelper()
protected void setAddrHelper(AddressHelper addrHelper)
protected String getName()
protected void setName(String name)
public boolean neverDeclare()
public static AMQDestination.DestSyntax getDefaultDestSyntax()
public static AMQDestination.DestSyntax getDestType(String str)
protected void parseDestinationString(String str) throws URISyntaxException
URISyntaxExceptionprotected void getInfoFromBindingURL(BindingURL binding)
public void setDestinationString(String str) throws Exception
Exceptionpublic String getDestinationString()
public AMQDestination.DestSyntax getDestSyntax()
protected void setDestSyntax(AMQDestination.DestSyntax syntax)
public AMQShortString getEncodedName()
public boolean isDurable()
public AMQShortString getExchangeName()
public AMQShortString getExchangeClass()
public boolean isExchangeDurable()
public boolean isExchangeAutoDelete()
public boolean isExchangeInternal()
public boolean isTopic()
public boolean isQueue()
public String getQueueName()
public AMQShortString getAMQQueueName()
public void setQueueName(AMQShortString queueName)
public AMQShortString getRoutingKey()
public AMQShortString[] getBindingKeys()
public boolean isExclusive()
public boolean isAutoDelete()
public abstract boolean isNameRequired()
public boolean isCheckedForQueueBinding()
public void setCheckedForQueueBinding(boolean checkedForQueueBinding)
public boolean isExchangeExistsChecked()
public void setExchangeExistsChecked(boolean exchangeExistsChecked)
public String toURL()
public Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic static javax.jms.Destination createDestination(BindingURL binding)
public static javax.jms.Destination createDestination(String str, boolean useNodeTypeForDestinationType) throws URISyntaxException
URISyntaxExceptionpublic Address getAddress()
protected void setAddress(Address addr)
public int getAddressType()
public void setAddressType(int addressType)
public String getAddressName()
public void setAddressName(String name)
public String getSubject()
public void setSubject(String subject)
public AMQDestination.AddressOption getCreate()
public void setCreate(AMQDestination.AddressOption option)
public AMQDestination.AddressOption getAssert()
public void setAssert(AMQDestination.AddressOption option)
public AMQDestination.AddressOption getDelete()
public void setDelete(AMQDestination.AddressOption option)
public Node getNode()
public void setNode(Node node)
public Link getLink()
public void setLink(Link link)
public void setExchangeName(AMQShortString name)
public void setExchangeClass(AMQShortString type)
public void setRoutingKey(AMQShortString rk)
public boolean isAddressResolved()
public void setAddressResolved(long addressResolved)
public boolean isBrowseOnly()
public AMQDestination copyDestination()
protected void setAutoDelete(boolean b)
protected void setDurable(boolean b)
public boolean isResolvedAfter(long time)
public RejectBehaviour getRejectBehaviour()
It tells the client to delegate the requeue/DLQ decision to the server .If this option is not specified, the messages won't be moved to the DLQ (or dropped) when delivery count exceeds the maximum.
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2006–2015 The Apache Software Foundation. All rights reserved.