Package org.springframework.amqp.core
Class CustomExchange
- java.lang.Object
-
- org.springframework.amqp.core.AbstractDeclarable
-
- org.springframework.amqp.core.AbstractExchange
-
- org.springframework.amqp.core.CustomExchange
-
- All Implemented Interfaces:
Declarable
,Exchange
public class CustomExchange extends AbstractExchange
Simple container collecting information to describe a custom exchange. Custom exchange types are allowed by the AMQP specification, and their names should start with "x-" (but this is not enforced here). Used in conjunction with administrative operations.- Author:
- Dave Syer
- See Also:
AmqpAdmin
-
-
Constructor Summary
Constructors Constructor Description CustomExchange(java.lang.String name, java.lang.String type)
CustomExchange(java.lang.String name, java.lang.String type, boolean durable, boolean autoDelete)
CustomExchange(java.lang.String name, java.lang.String type, boolean durable, boolean autoDelete, 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
getType()
The type of the exchange.-
Methods inherited from class org.springframework.amqp.core.AbstractExchange
getName, isAutoDelete, isDelayed, isDurable, isInternal, setDelayed, setInternal, toString
-
Methods inherited from class org.springframework.amqp.core.AbstractDeclarable
addArgument, getArguments, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, setIgnoreDeclarationExceptions, setShouldDeclare, shouldDeclare
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.amqp.core.Declarable
addArgument, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, shouldDeclare
-
Methods inherited from interface org.springframework.amqp.core.Exchange
getArguments
-
-
-
-
Constructor Detail
-
CustomExchange
public CustomExchange(java.lang.String name, java.lang.String type)
-
CustomExchange
public CustomExchange(java.lang.String name, java.lang.String type, boolean durable, boolean autoDelete)
-
CustomExchange
public CustomExchange(java.lang.String name, java.lang.String type, boolean durable, boolean autoDelete, java.util.Map<java.lang.String,java.lang.Object> arguments)
-
-
Method Detail
-
getType
public final java.lang.String getType()
Description copied from interface:Exchange
The type of the exchange. SeeExchangeTypes
for some well-known examples.- Specified by:
getType
in interfaceExchange
- Specified by:
getType
in classAbstractExchange
- Returns:
- the type of the exchange.
-
-