class DefaultConnectionMonitorRegistry implements ConnectionMonitorRegistry<ConnectionMonitor> {

    public static DefaultConnectionMonitorRegistry fromConfig(final MonitoringConfig config) {
        checkNotNull(config);

        final ConnectionLoggerRegistry loggerRegistry = ConnectionLoggerRegistry.fromConfig(config.logger());
        final ConnectivityCounterRegistry counterRegistry = ConnectivityCounterRegistry.fromConfig(config.counter());

        return new DefaultConnectionMonitorRegistry(loggerRegistry, counterRegistry);
    }

    private  DefaultConnectionMonitorRegistry(final ConnectionLoggerRegistry connectionLoggerRegistry,
            final ConnectivityCounterRegistry connectionCounterRegistry);

}