Interface EndpointUtilizationStatistics


public interface EndpointUtilizationStatistics
Various statistics about endpoint utilization, such as from EIP patterns that uses dynamic endpoints.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears all information.
    Gets the endpoint utilization statistics.
    int
    Maximum number of elements that we can have information about
    void
    Callback when an endpoint is being utilized by an Processor EIP such as sending a message to a dynamic endpoint.
    void
    To remove an endpoint from tracking information about its utilization
    int
    Current number of endpoints we have information about
  • Method Details

    • maxCapacity

      int maxCapacity()
      Maximum number of elements that we can have information about
    • size

      int size()
      Current number of endpoints we have information about
    • onHit

      void onHit(String uri)
      Callback when an endpoint is being utilized by an Processor EIP such as sending a message to a dynamic endpoint.
      Parameters:
      uri - the endpoint uri
    • remove

      void remove(String uri)
      To remove an endpoint from tracking information about its utilization
      Parameters:
      uri - the endpoint uri
    • getStatistics

      Map<String,Long> getStatistics()
      Gets the endpoint utilization statistics.
      Returns:
      a map with uri and number of usage of the endpoint.
    • clear

      void clear()
      Clears all information.