Tabnine Logo
ThreadPoolProbe.onMaxNumberOfThreadsEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
onMaxNumberOfThreadsEvent
method
in
org.glassfish.grizzly.threadpool.ThreadPoolProbe

Best Java code snippets using org.glassfish.grizzly.threadpool.ThreadPoolProbe.onMaxNumberOfThreadsEvent (Showing top 12 results out of 315)

origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: javaee/grizzly

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Notify registered {@link ThreadPoolProbe}s about the "max number of threads reached" event.
 *
 * @param threadPool the {@link AbstractThreadPool} being monitored
 * @param maxNumberOfThreads the maximum number of threads allowed in the
 *  {@link AbstractThreadPool}
 */
static void notifyMaxNumberOfThreads(final AbstractThreadPool threadPool,
    final int maxNumberOfThreads) {
  final ThreadPoolProbe[] probes = threadPool.monitoringConfig.getProbesUnsafe();
  if (probes != null) {
    for (ThreadPoolProbe probe : probes) {
      probe.onMaxNumberOfThreadsEvent(threadPool, maxNumberOfThreads);
    }
  }
}
org.glassfish.grizzly.threadpoolThreadPoolProbeonMaxNumberOfThreadsEvent

Javadoc

This event may be fired when the AbstractThreadPool implementation has allocated and is managing a number of threads equal to the maximum limit of the pool.

Popular methods of ThreadPoolProbe

  • onTaskCancelEvent
    This event may be fired when a dequeued task has been canceled. This event can occur during shutdo
  • onTaskCompleteEvent
    This event may be fired when a dequeued task has completed processing.
  • onTaskDequeueEvent
    This event may be fired when a task has been pulled from the queue and is about to be processed.
  • onTaskQueueEvent
    This event may be fired when a task has been queued for processing.
  • onTaskQueueOverflowEvent
    This event may be fired when the task queue of the AbstractThreadPoolimplementation has exceeded it
  • onThreadAllocateEvent
    This event may be fired when an AbstractThreadPool implementation allocates a new managed Thread.
  • onThreadPoolStartEvent
    This event may be fired when an AbstractThreadPool implementation starts running.
  • onThreadPoolStopEvent
    This event may be fired when an AbstractThreadPool implementation stops.
  • onThreadReleaseEvent
    This event may be fired when a thread will no longer be managed by the AbstractThreadPool implement

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now