public class DefaultEndpointUtilizationStatistics extends Object implements EndpointUtilizationStatistics
Constructor and Description |
---|
DefaultEndpointUtilizationStatistics(int maxCapacity) |
Modifier and Type | Method and 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 utilizated 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
|
public DefaultEndpointUtilizationStatistics(int maxCapacity)
public int maxCapacity()
EndpointUtilizationStatistics
maxCapacity
in interface EndpointUtilizationStatistics
public int size()
EndpointUtilizationStatistics
size
in interface EndpointUtilizationStatistics
public void onHit(String uri)
EndpointUtilizationStatistics
Processor
EIP
such as sending a message to a dynamic endpoint.onHit
in interface EndpointUtilizationStatistics
uri
- the endpoint uripublic void remove(String uri)
EndpointUtilizationStatistics
remove
in interface EndpointUtilizationStatistics
uri
- the endpoint uripublic Map<String,Long> getStatistics()
EndpointUtilizationStatistics
getStatistics
in interface EndpointUtilizationStatistics
public void clear()
EndpointUtilizationStatistics
clear
in interface EndpointUtilizationStatistics
Apache Camel