Package org.apache.camel.spi
Interface EndpointUtilizationStatistics
public interface EndpointUtilizationStatistics
Various statistics about endpoint utilization, such as from EIP patterns that uses dynamic endpoints.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all information.Gets the endpoint utilization statistics.int
Maximum number of elements that we can have information aboutvoid
Callback when an endpoint is being utilized by anProcessor
EIP such as sending a message to a dynamic endpoint.void
To remove an endpoint from tracking information about its utilizationint
size()
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
Callback when an endpoint is being utilized by anProcessor
EIP such as sending a message to a dynamic endpoint.- Parameters:
uri
- the endpoint uri
-
remove
To remove an endpoint from tracking information about its utilization- Parameters:
uri
- the endpoint uri
-
getStatistics
Gets the endpoint utilization statistics.- Returns:
- a map with uri and number of usage of the endpoint.
-
clear
void clear()Clears all information.
-