public abstract class AbstractDeclarable extends java.lang.Object implements Declarable
Declarable classes.| Constructor and Description |
|---|
AbstractDeclarable() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<?> |
getDeclaringAdmins()
The collection of
AmqpAdmins that should declare this
object; if empty, all admins should declare. |
void |
setAdminsThatShouldDeclare(java.lang.Object... admins)
The
AmqpAdmins that should declare this object; default is
all admins. |
void |
setShouldDeclare(boolean shouldDeclare)
Whether or not this object should be automatically declared
by any
AmqpAdmin. |
boolean |
shouldDeclare()
Whether or not this object should be automatically declared
by any
AmqpAdmin. |
public boolean shouldDeclare()
DeclarableAmqpAdmin.shouldDeclare in interface Declarablepublic void setShouldDeclare(boolean shouldDeclare)
AmqpAdmin. Default is true.shouldDeclare - true or false.public java.util.Collection<?> getDeclaringAdmins()
DeclarableAmqpAdmins that should declare this
object; if empty, all admins should declare.getDeclaringAdmins in interface Declarablepublic void setAdminsThatShouldDeclare(java.lang.Object... admins)
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.admins - The admins.