Package org.apache.qpid.server.model
Interface Exchange<X extends Exchange<X>>
-
- All Superinterfaces:
ConfiguredObject<X>
,ContextProvider
,DestinationReferrer
,MessageDestination
,MessageNode
,MessageSender
,PermissionedObject
,TaskExecutorProvider
- All Known Subinterfaces:
DirectExchange<X>
,FanoutExchange<X>
,HeadersExchange<X>
,TopicExchange<X>
- All Known Implementing Classes:
AbstractExchange
,DirectExchangeImpl
,HeadersExchangeImpl
public interface Exchange<X extends Exchange<X>> extends ConfiguredObject<X>, MessageDestination, DestinationReferrer, MessageSender
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Exchange.BehaviourOnUnknownDeclareArgument
static class
Exchange.UnroutableMessageBehaviour
-
Field Summary
Fields Modifier and Type Field Description static String
ALTERNATE_BINDING
static String
CLASS_DESCRIPTION
static String
CREATING_LINK_INFO
static String
DURABLE_BINDINGS
static Exchange.BehaviourOnUnknownDeclareArgument
ON_UNKNOWN_EXCHANGE_DECLARE_OPTION
static String
UNKNOWN_EXCHANGE_DECLARE_ARGUMENT_BEHAVIOUR_NAME
static String
UNROUTABLE_MESSAGE_BEHAVIOUR
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addBinding(String bindingKey, Queue<?> queue, Map<String,Object> arguments)
boolean
bind(String destination, String bindingKey, Map<String,Object> arguments, boolean replaceExistingArguments)
boolean
deleteBinding(String bindingKey, Queue<?> queue)
AlternateBinding
getAlternateBinding()
long
getBindingCount()
Collection<Binding>
getBindings()
long
getBytesDropped()
long
getBytesIn()
CreatingLinkInfo
getCreatingLinkInfo()
Collection<Binding>
getDurableBindings()
EventLogger
getEventLogger()
long
getMessagesDropped()
long
getMessagesIn()
long
getProducerCount()
Collection<Binding>
getPublishingLinks(MessageDestination destination)
Exchange.UnroutableMessageBehaviour
getUnroutableMessageBehaviour()
QueueManagingVirtualHost<?>
getVirtualHost()
boolean
hasBinding(String bindingKey, Queue<?> queue)
boolean
hasBindings()
Returns true if this exchange has at least one binding associated with it.boolean
isAutoDelete()
boolean
isBound(String bindingKey)
Determines whether a message is routing to any queue using a specific _routing keyboolean
isBound(String bindingKey, Map<String,Object> arguments)
boolean
isBound(String bindingKey, Map<String,Object> arguments, Queue<?> queue)
Determines whether a message would be isBound to a particular queue using a specific routing key and argumentsboolean
isBound(String bindingKey, Queue<?> queue)
Determines whether a message would be isBound to a particular queue using a specific routing keyboolean
isBound(Map<String,Object> arguments)
boolean
isBound(Map<String,Object> arguments, Queue<?> queue)
boolean
isBound(Queue<?> queue)
void
replaceBinding(String bindingKey, Queue<?> queue, Map<String,Object> arguments)
void
resetStatistics()
boolean
unbind(String destination, String bindingKey)
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.message.MessageDestination
addReference, authorisePublish, getAddressSpace, getAlternateBindingDestination, getName, isDurable, linkAdded, linkRemoved, removeReference, route
-
Methods inherited from interface org.apache.qpid.server.message.MessageSender
destinationRemoved
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Field Detail
-
CLASS_DESCRIPTION
static final String CLASS_DESCRIPTION
- See Also:
- Constant Field Values
-
ALTERNATE_BINDING
static final String ALTERNATE_BINDING
- See Also:
- Constant Field Values
-
DURABLE_BINDINGS
static final String DURABLE_BINDINGS
- See Also:
- Constant Field Values
-
UNROUTABLE_MESSAGE_BEHAVIOUR
static final String UNROUTABLE_MESSAGE_BEHAVIOUR
- See Also:
- Constant Field Values
-
CREATING_LINK_INFO
static final String CREATING_LINK_INFO
- See Also:
- Constant Field Values
-
UNKNOWN_EXCHANGE_DECLARE_ARGUMENT_BEHAVIOUR_NAME
static final String UNKNOWN_EXCHANGE_DECLARE_ARGUMENT_BEHAVIOUR_NAME
- See Also:
- Constant Field Values
-
ON_UNKNOWN_EXCHANGE_DECLARE_OPTION
static final Exchange.BehaviourOnUnknownDeclareArgument ON_UNKNOWN_EXCHANGE_DECLARE_OPTION
-
-
Method Detail
-
getAlternateBinding
AlternateBinding getAlternateBinding()
-
getUnroutableMessageBehaviour
Exchange.UnroutableMessageBehaviour getUnroutableMessageBehaviour()
-
getBindings
Collection<Binding> getBindings()
-
getPublishingLinks
Collection<Binding> getPublishingLinks(MessageDestination destination)
- Specified by:
getPublishingLinks
in interfaceMessageSender
-
getDurableBindings
Collection<Binding> getDurableBindings()
-
getCreatingLinkInfo
CreatingLinkInfo getCreatingLinkInfo()
-
getBindingCount
long getBindingCount()
-
getBytesDropped
long getBytesDropped()
-
getBytesIn
long getBytesIn()
-
getMessagesDropped
long getMessagesDropped()
-
getMessagesIn
long getMessagesIn()
-
getProducerCount
long getProducerCount()
-
bind
boolean bind(String destination, String bindingKey, Map<String,Object> arguments, boolean replaceExistingArguments)
-
resetStatistics
void resetStatistics()
-
isAutoDelete
boolean isAutoDelete()
- Returns:
- true if the exchange will be deleted after all queues have been detached
-
addBinding
boolean addBinding(String bindingKey, Queue<?> queue, Map<String,Object> arguments) throws AMQInvalidArgumentException
- Throws:
AMQInvalidArgumentException
-
replaceBinding
void replaceBinding(String bindingKey, Queue<?> queue, Map<String,Object> arguments) throws AMQInvalidArgumentException
- Throws:
AMQInvalidArgumentException
-
getVirtualHost
QueueManagingVirtualHost<?> getVirtualHost()
-
isBound
boolean isBound(String bindingKey, Map<String,Object> arguments, Queue<?> queue)
Determines whether a message would be isBound to a particular queue using a specific routing key and arguments- Parameters:
bindingKey
-arguments
-queue
-- Returns:
-
isBound
boolean isBound(String bindingKey, Queue<?> queue)
Determines whether a message would be isBound to a particular queue using a specific routing key- Parameters:
bindingKey
-queue
-- Returns:
-
isBound
boolean isBound(String bindingKey)
Determines whether a message is routing to any queue using a specific _routing key- Parameters:
bindingKey
-- Returns:
-
hasBindings
boolean hasBindings()
Returns true if this exchange has at least one binding associated with it.- Returns:
-
isBound
boolean isBound(Queue<?> queue)
-
getEventLogger
EventLogger getEventLogger()
-
-