public interface Declarable
AmqpAdmin
.
Registration can be limited to specific AmqpAdmin
s.Modifier and Type | Method and Description |
---|---|
default void |
addArgument(String name,
Object value)
Add an argument to the declarable.
|
Collection<?> |
getDeclaringAdmins()
The collection of
AmqpAdmin s that should declare this
object; if empty, all admins should declare. |
boolean |
isIgnoreDeclarationExceptions()
Should ignore exceptions (such as mismatched args) when declaring.
|
default Object |
removeArgument(String name)
Remove an argument from the declarable.
|
void |
setAdminsThatShouldDeclare(Object... adminArgs)
The
AmqpAdmin s that should declare this object; default is
all admins. |
boolean |
shouldDeclare()
Whether or not this object should be automatically declared
by any
AmqpAdmin . |
boolean shouldDeclare()
AmqpAdmin
.Collection<?> getDeclaringAdmins()
AmqpAdmin
s that should declare this
object; if empty, all admins should declare.boolean isIgnoreDeclarationExceptions()
void setAdminsThatShouldDeclare(Object... adminArgs)
AmqpAdmin
s that should declare this object; default is
all admins.
setAdminsThatShouldDeclare((AmqpAdmin) null)
or
setAdminsThatShouldDeclare((AmqpAdmin[]) null)
). Clearing the collection resets
the behavior such that all admins will declare the object.adminArgs
- The admins.default void addArgument(String name, Object value)
name
- the argument name.value
- the argument value.