public ManagedEndpoint(InternalEndpoint endpoint, Map<String,?> properties) {
this.endpoint = endpoint;
this.properties = new HashMap<String,Object>(properties);
this.inboundExchanges = new CountStatistic("inboundExchanges", "Number of exchanges received");
this.inboundExchangeRate = new TimeStatistic("inboundExchangeRate", "Number of exchanges received per second");
this.outboundExchanges = new CountStatistic("outboundExchanges", "Number of exchanges sent");
this.outboundExchangeRate = new TimeStatistic("outboundExchangeRate", "Number of exchanges sent per second");
}