Package org.springframework.amqp.core
Class Binding
- java.lang.Object
-
- org.springframework.amqp.core.AbstractDeclarable
-
- org.springframework.amqp.core.Binding
-
- All Implemented Interfaces:
Declarable
public class Binding extends AbstractDeclarable
Simple container collecting information to describe a binding. Takes String destination and exchange names as arguments to facilitate wiring using code based configuration. Can be used in conjunction withAmqpAdmin
, or created via aBindingBuilder
.- Author:
- Mark Pollack, Mark Fisher, Dave Syer, Gary Russell
- See Also:
AmqpAdmin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Binding.DestinationType
The binding destination.
-
Constructor Summary
Constructors Constructor Description Binding(java.lang.String destination, Binding.DestinationType destinationType, java.lang.String exchange, java.lang.String routingKey, java.util.Map<java.lang.String,java.lang.Object> arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDestination()
Binding.DestinationType
getDestinationType()
java.lang.String
getExchange()
java.lang.String
getRoutingKey()
boolean
isDestinationQueue()
java.lang.String
toString()
-
Methods inherited from class org.springframework.amqp.core.AbstractDeclarable
addArgument, getArguments, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, setIgnoreDeclarationExceptions, setShouldDeclare, shouldDeclare
-
-
-
-
Constructor Detail
-
Binding
public Binding(java.lang.String destination, Binding.DestinationType destinationType, java.lang.String exchange, java.lang.String routingKey, @Nullable java.util.Map<java.lang.String,java.lang.Object> arguments)
-
-
Method Detail
-
getDestination
public java.lang.String getDestination()
-
getDestinationType
public Binding.DestinationType getDestinationType()
-
getExchange
public java.lang.String getExchange()
-
getRoutingKey
public java.lang.String getRoutingKey()
-
isDestinationQueue
public boolean isDestinationQueue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-