Interface BrowsableEndpoint

All Superinterfaces:
AutoCloseable, ComponentAware, Endpoint, IsSingleton, Service

public interface BrowsableEndpoint extends Endpoint
An optional interface an Endpoint may choose to implement which allows it to expose a way of browsing the exchanges available.
  • Method Details

    • getBrowseLimit

      int getBrowseLimit()
      Maximum number of messages to browse by default.
    • setBrowseLimit

      void setBrowseLimit(int browseLimit)
      Maximum number of messages to browse by default.
    • getBrowseStatus

      default BrowsableEndpoint.BrowseStatus getBrowseStatus(int limit)
      Returns a quick browse status
      Parameters:
      limit - to limit the result to a maximum. Use 0 for default limit.
      Returns:
      the status
    • getExchanges

      List<Exchange> getExchanges()
      Return the exchanges available on this endpoint
      Returns:
      the exchanges on this endpoint
    • getExchanges

      default List<Exchange> getExchanges(int limit, Predicate filter)
      Return the exchanges available on this endpoint, allowing to filter the result in the specific component.
      Parameters:
      limit - to limit the result to a maximum. Use 0 for default limit.
      filter - filter to filter among the messages to include.
      Returns:
      the exchanges on this endpoint