/** * Notify registered {@link ConnectionProbe}s about the error. * * @param connection the <tt>Connection</tt> event occurred on. */ protected static void notifyProbesError(AIOConnection connection, Throwable error) { final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ConnectionProbe probe : probes) { probe.onErrorEvent(connection, error); } } }
/** * Notify registered {@link ConnectionProbe}s about the IO Event disabled event. * * @param connection the <tt>Connection</tt> event occurred on. * @param ioEvent the {@link IOEvent}. */ protected static void notifyIOEventDisabled(AIOConnection connection, IOEvent ioEvent) { final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ConnectionProbe probe : probes) { probe.onIOEventDisableEvent(connection, ioEvent); } } }
/** * Notify registered {@link ConnectionProbe}s about the close event. * * @param connection the <tt>Connection</tt> event occurred on. */ protected static void notifyProbesClose(AIOConnection connection) { final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ConnectionProbe probe : probes) { probe.onCloseEvent(connection); } } }
/** Notify registered {@link ConnectionProbe}s about the write event. */ protected static void notifyProbesWrite(AIOConnection connection, Buffer data, int size) { final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe(); if (probes != null) { for (ConnectionProbe probe : probes) { probe.onWriteEvent(connection, data, size); } } }