Tabnine Logo
ProbeNotifier.notifyThreadReleased
Code IndexAdd Tabnine to your IDE (free)

How to use
notifyThreadReleased
method
in
org.glassfish.grizzly.threadpool.ProbeNotifier

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

origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: javaee/grizzly

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Method is called by {@link Worker}, when it's completing
 * {@link Worker#run()} method execution, which in most cases means,
 * that ThreadPool's thread will be released. This method is called from
 * {@link Worker}'s thread.
 *
 * @param worker
 */
protected void onWorkerExit(Worker worker) {
  synchronized (stateLock) {
    workers.remove(worker);
    if (delayedQueue != null) {
      delayedQueue.remove(worker);
    }
    if (workers.isEmpty()) {
      // notify awaitTermination threads
      stateLock.notifyAll();
    }
  }
  ProbeNotifier.notifyThreadReleased(this, worker.t);
}
org.glassfish.grizzly.threadpoolProbeNotifiernotifyThreadReleased

Javadoc

Notify registered ThreadPoolProbes about the "thread released" event.

Popular methods of ProbeNotifier

  • notifyMaxNumberOfThreads
    Notify registered ThreadPoolProbes about the "max number of threads reached" event.
  • notifyTaskCancelled
    Notify registered ThreadPoolProbes about the "task cancelled" event.
  • notifyTaskCompleted
    Notify registered ThreadPoolProbes about the "task completed" event.
  • notifyTaskDequeued
    Notify registered ThreadPoolProbes about the "task dequeued" event.
  • notifyTaskQueueOverflow
    Notify registered ThreadPoolProbes about the "task queue overflow" event.
  • notifyTaskQueued
    Notify registered ThreadPoolProbes about the "task queued" event.
  • notifyThreadAllocated
    Notify registered ThreadPoolProbes about the "thread allocated" event.
  • notifyThreadPoolStarted
    Notify registered ThreadPoolProbes about the "thread pool started" event.
  • notifyThreadPoolStopped
    Notify registered ThreadPoolProbes about the "thread pool stopped" event.

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JComboBox (javax.swing)
  • CodeWhisperer alternatives
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