コード例 #1
0
 /**
  * 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);
     }
   }
 }
コード例 #2
0
 /**
  * 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);
     }
   }
 }
コード例 #3
0
 /**
  * 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);
     }
   }
 }
コード例 #4
0
  /** 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);
      }
    }
  }