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

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

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

origin: javaee/grizzly

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: javaee/grizzly

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: javaee/grizzly

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: javaee/grizzly

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: javaee/grizzly

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: javaee/grizzly

/**
 *
 */
public SyncThreadPool(ThreadPoolConfig config) {
  super(config);
  if (config.getKeepAliveTime(TimeUnit.MILLISECONDS) < 0) {
    throw new IllegalArgumentException("keepAliveTime < 0");
  }
  workQueue = config.getQueue() != null ?
    config.getQueue() :
    config.setQueue(new LinkedList<Runnable>()).getQueue();
  this.maxQueuedTasks = config.getQueueLimit();
  final int corePoolSize = config.getCorePoolSize();
  while (currentPoolSize < corePoolSize) {
    startWorker(new SyncThreadWorker(true));
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      DataStructures.getLTQInstance(Runnable.class)).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: org.glassfish.grizzly/grizzly-core

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: javaee/grizzly

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

public FixedThreadPool(ThreadPoolConfig config) {
  super(config);
  this.workQueue = config.getQueue() != null ?
    (BlockingQueue<Runnable>) config.getQueue() :
    (BlockingQueue<Runnable>) config.setQueue(
      new LinkedTransferQueue<>()).getQueue();
  
  int poolSize = config.getMaxPoolSize();
  synchronized (stateLock) {
    while (poolSize-- > 0) {
      doStartWorker();
    }
  }
  ProbeNotifier.notifyThreadPoolStarted(this);
  super.onMaxNumberOfThreadsReached();
}
org.glassfish.grizzly.threadpoolProbeNotifiernotifyThreadPoolStarted

Javadoc

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

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JPanel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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