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 TypeMethodDescriptionvoidclear()Clears all information.Gets the endpoint utilization statistics.intMaximum number of elements that we can have information aboutvoidCallback when an endpoint is being utilized by anProcessorEIP such as sending a message to a dynamic endpoint.voidTo remove an endpoint from tracking information about its utilizationintsize()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 anProcessorEIP 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.
-