Package org.apache.camel.spi
Interface EndpointUtilizationStatistics
-
public interface EndpointUtilizationStatisticsVarious 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 voidclear()Clears all information.Map<String,Long>getStatistics()Gets the endpoint utilization statistics.intmaxCapacity()Maximum number of elements that we can have information aboutvoidonHit(String uri)Callback when an endpoint is being utilized by anProcessorEIP such as sending a message to a dynamic endpoint.voidremove(String uri)To remove an endpoint from tracking information about its utilizationintsize()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 anProcessorEIP 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.
-
-