Interface EndpointUtilizationStatistics


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clears all information.
      Map<String,​Long> getStatistics()
      Gets the endpoint utilization statistics.
      int maxCapacity()
      Maximum number of elements that we can have information about
      void onHit​(String uri)
      Callback when an endpoint is being utilized by an Processor EIP such as sending a message to a dynamic endpoint.
      void remove​(String uri)
      To remove an endpoint from tracking information about its utilization
      int size()
      Current number of endpoints we have information about
    • Method Detail

      • 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.