org.glassfish.grizzly.threadpool
Class GrizzlyExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.glassfish.grizzly.threadpool.GrizzlyExecutorService
- All Implemented Interfaces:
- Executor, ExecutorService, JmxMonitoringAware<ThreadPoolProbe>, MonitoringAware<ThreadPoolProbe>
public class GrizzlyExecutorService
- extends AbstractExecutorService
- implements JmxMonitoringAware<ThreadPoolProbe>
- Author:
- gustav trede
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected volatile ThreadPoolConfig config
GrizzlyExecutorService
protected GrizzlyExecutorService(ThreadPoolConfig config)
createInstance
public static GrizzlyExecutorService createInstance()
- Returns:
GrizzlyExecutorService
createInstance
public static GrizzlyExecutorService createInstance(ThreadPoolConfig cfg)
- Parameters:
cfg - ThreadPoolConfig
- Returns:
GrizzlyExecutorService
setImpl
protected final void setImpl(ThreadPoolConfig cfg)
reconfigure
public GrizzlyExecutorService reconfigure(ThreadPoolConfig config)
- Sets the
ThreadPoolConfig
- Parameters:
config -
- Returns:
- returns
GrizzlyExecutorService
getConfiguration
public ThreadPoolConfig getConfiguration()
- Returns:
- config -
ThreadPoolConfig
shutdown
public void shutdown()
- Specified by:
shutdown in interface ExecutorService
shutdownNow
public List<Runnable> shutdownNow()
- Specified by:
shutdownNow in interface ExecutorService
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown in interface ExecutorService
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated in interface ExecutorService
execute
public void execute(Runnable r)
- Specified by:
execute in interface Executor
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
awaitTermination in interface ExecutorService
- Throws:
InterruptedException
getMonitoringConfig
public JmxMonitoringConfig<ThreadPoolProbe> getMonitoringConfig()
- Return the object associated
JmxMonitoringConfig.
- Specified by:
getMonitoringConfig in interface JmxMonitoringAware<ThreadPoolProbe>- Specified by:
getMonitoringConfig in interface MonitoringAware<ThreadPoolProbe>
- Returns:
- the object associated
JmxMonitoringConfig.
Copyright © 2012 Oracle Corporation. All Rights Reserved.