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

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

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

origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Override
public void shutdown() {
  synchronized (stateLock) {
    if (running) {
      running = false;
      poisonAll();
      stateLock.notifyAll();
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * {@inheritDoc}
 */
@Override
public List<Runnable> shutdownNow() {
  synchronized (stateLock) {
    List<Runnable> drained = new ArrayList<Runnable>();
    if (running) {
      running = false;
      drain(getQueue(), drained);
      for (Runnable task : drained) {
        onTaskDequeued(task);
        onTaskCancelled(task);
      }
      poisonAll();
      //try to interrupt their current work so they can get their poison fast
      for (Worker w : workers.keySet()) {
        w.t.interrupt();
      }
      ProbeNotifier.notifyThreadPoolStopped(this);
    }
    return drained;
  }
}
org.glassfish.grizzly.threadpoolProbeNotifiernotifyThreadPoolStopped

Javadoc

Notify registered ThreadPoolProbes about the "thread pool stopped" 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.
  • notifyThreadReleased
    Notify registered ThreadPoolProbes about the "thread released" event.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • JComboBox (javax.swing)
  • From CI to AI: The AI layer in your organization
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