public interface Declarable
AmqpAdmin.
Registration can be limited to specific AmqpAdmins.| Modifier and Type | Method and Description |
|---|---|
default void |
addArgument(java.lang.String name,
java.lang.Object value)
Add an argument to the declarable.
|
java.util.Collection<?> |
getDeclaringAdmins()
The collection of
AmqpAdmins that should declare this
object; if empty, all admins should declare. |
boolean |
isIgnoreDeclarationExceptions()
Should ignore exceptions (such as mismatched args) when declaring.
|
default java.lang.Object |
removeArgument(java.lang.String name)
Remove an argument from the declarable.
|
void |
setAdminsThatShouldDeclare(java.lang.Object... adminArgs)
The
AmqpAdmins 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.java.util.Collection<?> getDeclaringAdmins()
AmqpAdmins that should declare this
object; if empty, all admins should declare.boolean isIgnoreDeclarationExceptions()
void setAdminsThatShouldDeclare(java.lang.Object... adminArgs)
AmqpAdmins 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(java.lang.String name,
java.lang.Object value)
name - the argument name.value - the argument value.@Nullable default java.lang.Object removeArgument(java.lang.String name)
name - the argument name.