org.apache.activemq.artemis.api.core.management

## Interface AddressControl

-     public interface AddressControl

  An AddressControl is used to manage an address.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAddress()` Returns the managed address.
    `long` | `getAddressSize()` Returns the number of estimated bytes being used by the queue(s), used to control paging and blocking.
    `String[]` | `getBindingNames()` Returns the names of all bindings (both queues and diverts) bound to this address
    `long` | `getNumberOfBytesPerPage()` Returns the number of bytes used by each page for this address.
    `long` | `getNumberOfMessages()` Returns the sum of messages on queue(s), including messages in delivery.
    `int` | `getNumberOfPages()` Returns the number of pages used by this address.
    `String[]` | `getQueueNames()` Returns the names of the queues bound to this address.
    `Object[]` | `getRoles()` Returns the roles (name and permissions) associated with this address.
    `String` | `getRolesAsJSON()` Returns the roles (name and permissions) associated with this address using JSON serialization.
    `boolean` | `isPaging()` Returns whether this address is paging.

- - ### Method Detail

    - #### getAddress

          String getAddress()

      Returns the managed address.

    - #### getRoles

          Object[] getRoles()
                     throws Exception

      Returns the roles (name and permissions) associated with this address.
      Throws:
        `Exception`

    - #### getRolesAsJSON

          String getRolesAsJSON()
                         throws Exception

      Returns the roles (name and permissions) associated with this address using JSON serialization.
      Java objects can be recreated from JSON serialization using `RoleInfo.from(String)`.
      Throws:
        `Exception`

    - #### getAddressSize

          long getAddressSize()
                       throws Exception

      Returns the number of estimated bytes being used by the queue(s), used to control paging and blocking.
      Throws:
        `Exception`

    - #### getNumberOfMessages

          long getNumberOfMessages()
                            throws Exception

      Returns the sum of messages on queue(s), including messages in delivery.
      Throws:
        `Exception`

    - #### getQueueNames

          String[] getQueueNames()
                          throws Exception

      Returns the names of the queues bound to this address.
      Throws:
        `Exception`

    - #### getNumberOfPages

          int getNumberOfPages()
                        throws Exception

      Returns the number of pages used by this address.
      Throws:
        `Exception`

    - #### isPaging

          boolean isPaging()
                    throws Exception

      Returns whether this address is paging.
      Throws:
        `Exception`

    - #### getNumberOfBytesPerPage

          long getNumberOfBytesPerPage()
                                throws Exception

      Returns the number of bytes used by each page for this address.
      Throws:
        `Exception`

    - #### getBindingNames

          String[] getBindingNames()
                            throws Exception

      Returns the names of all bindings (both queues and diverts) bound to this address
      Throws:
        `Exception`

Copyright © 2017 The Apache Software Foundation. All rights reserved.