|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
com.sun.grizzly.util.GrizzlyExecutorService
public class GrizzlyExecutorService
| Field Summary | |
|---|---|
protected ThreadPoolConfig |
config
|
| Constructor Summary | |
|---|---|
protected |
GrizzlyExecutorService(ThreadPoolConfig config)
|
protected |
GrizzlyExecutorService(ThreadPoolConfig config,
boolean initialize)
|
| Method Summary | |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
|
static GrizzlyExecutorService |
createInstance()
|
static GrizzlyExecutorService |
createInstance(ThreadPoolConfig cfg)
|
void |
execute(Runnable r)
|
int |
getActiveCount()
Deprecated. please use ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics. |
long |
getCompletedTaskCount()
Deprecated. please use ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics. |
ThreadPoolConfig |
getConfiguration()
|
int |
getCorePoolSize()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
long |
getKeepAliveTime(TimeUnit unit)
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
int |
getLargestPoolSize()
Deprecated. please use ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics. |
int |
getMaximumPoolSize()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
int |
getMaxQueuedTasksCount()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
String |
getName()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
int |
getPoolSize()
Deprecated. please use ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics. |
int |
getPriority()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
Queue<Runnable> |
getQueue()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
int |
getQueueSize()
Deprecated. please use ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics. |
int |
getTaskCount()
Deprecated. please use ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics. |
ThreadFactory |
getThreadFactory()
Deprecated. please use getConfiguration()
to check thread pool configuration settings. |
boolean |
isShutdown()
|
boolean |
isTerminated()
|
GrizzlyExecutorService |
reconfigure(ThreadPoolConfig config)
Sets the ThreadPoolConfig |
void |
setCorePoolSize(int corePoolSize)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
protected void |
setImpl(ThreadPoolConfig cfg)
|
void |
setKeepAliveTime(long time,
TimeUnit unit)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
void |
setMaximumPoolSize(int maximumPoolSize)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
void |
setMaxQueuedTasksCount(int maxTasksCount)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
void |
setName(String name)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
void |
setPriority(int priority)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
void |
setThreadFactory(ThreadFactory threadFactory)
Deprecated. please use reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings. |
void |
shutdown()
|
List<Runnable> |
shutdownNow()
|
| Methods inherited from class java.util.concurrent.AbstractExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.ExecutorService |
|---|
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit |
| Field Detail |
|---|
protected volatile ThreadPoolConfig config
| Constructor Detail |
|---|
protected GrizzlyExecutorService(ThreadPoolConfig config)
protected GrizzlyExecutorService(ThreadPoolConfig config,
boolean initialize)
| Method Detail |
|---|
public static GrizzlyExecutorService createInstance()
GrizzlyExecutorServicepublic static GrizzlyExecutorService createInstance(ThreadPoolConfig cfg)
cfg - ThreadPoolConfig
GrizzlyExecutorServiceprotected final void setImpl(ThreadPoolConfig cfg)
public GrizzlyExecutorService reconfigure(ThreadPoolConfig config)
ThreadPoolConfig
config -
GrizzlyExecutorServicepublic ThreadPoolConfig getConfiguration()
ThreadPoolConfigpublic void shutdown()
shutdown in interface ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServicepublic boolean isTerminated()
isTerminated in interface ExecutorServicepublic void execute(Runnable r)
execute in interface Executor
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedException@Deprecated public Queue<Runnable> getQueue()
getConfiguration()
to check thread pool configuration settings.
ExtendedThreadPool
getQueue in interface ExtendedThreadPool@Deprecated public int getActiveCount()
ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics.
ExtendedThreadPool
getActiveCount in interface ExtendedThreadPool@Deprecated public int getTaskCount()
ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics.
ExtendedThreadPool
getTaskCount in interface ExtendedThreadPool@Deprecated public long getCompletedTaskCount()
ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics.
ExtendedThreadPool
getCompletedTaskCount in interface ExtendedThreadPool@Deprecated public int getCorePoolSize()
getConfiguration()
to check thread pool configuration settings.
ExtendedThreadPool
getCorePoolSize in interface ExtendedThreadPoolExtendedThreadPool.setCorePoolSize(int)@Deprecated public void setCorePoolSize(int corePoolSize)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
ExtendedThreadPool
setCorePoolSize in interface ExtendedThreadPoolcorePoolSize - the new core sizeExtendedThreadPool.getCorePoolSize()@Deprecated public int getLargestPoolSize()
ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics.
ExtendedThreadPool
getLargestPoolSize in interface ExtendedThreadPool@Deprecated public int getPoolSize()
ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics.
ExtendedThreadPool
getPoolSize in interface ExtendedThreadPool@Deprecated public int getQueueSize()
ThreadPoolMonitoringProbes to intercept
thread pool events and build statistics.
ExtendedThreadPool
getQueueSize in interface ExtendedThreadPool@Deprecated public long getKeepAliveTime(TimeUnit unit)
getConfiguration()
to check thread pool configuration settings.
ExtendedThreadPool
getKeepAliveTime in interface ExtendedThreadPoolunit - the desired time unit of the result
ExtendedThreadPool.setKeepAliveTime(long, java.util.concurrent.TimeUnit)
@Deprecated
public void setKeepAliveTime(long time,
TimeUnit unit)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
ExtendedThreadPool
setKeepAliveTime in interface ExtendedThreadPooltime - the time to wait. A time value of zero will cause
excess threads to terminate immediately after executing tasks.unit - the time unit of the time argumentExtendedThreadPool.getKeepAliveTime(java.util.concurrent.TimeUnit)@Deprecated public int getMaximumPoolSize()
getConfiguration()
to check thread pool configuration settings.
ExtendedThreadPool
getMaximumPoolSize in interface ExtendedThreadPoolExtendedThreadPool.setMaximumPoolSize(int)@Deprecated public void setMaximumPoolSize(int maximumPoolSize)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
ExtendedThreadPool
setMaximumPoolSize in interface ExtendedThreadPoolmaximumPoolSize - the new maximumExtendedThreadPool.getMaximumPoolSize()@Deprecated public int getMaxQueuedTasksCount()
getConfiguration()
to check thread pool configuration settings.
getMaxQueuedTasksCount in interface ExtendedThreadPool@Deprecated public void setMaxQueuedTasksCount(int maxTasksCount)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
setMaxQueuedTasksCount in interface ExtendedThreadPool@Deprecated public String getName()
getConfiguration()
to check thread pool configuration settings.
getName in interface ExtendedThreadPool@Deprecated public void setName(String name)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
setName in interface ExtendedThreadPool@Deprecated public int getPriority()
getConfiguration()
to check thread pool configuration settings.
getPriority in interface ExtendedThreadPoolpublic void setPriority(int priority)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
setPriority in interface ExtendedThreadPool@Deprecated public ThreadFactory getThreadFactory()
getConfiguration()
to check thread pool configuration settings.
ExtendedThreadPool
getThreadFactory in interface ExtendedThreadPoolExtendedThreadPool.setThreadFactory(java.util.concurrent.ThreadFactory)@Deprecated public void setThreadFactory(ThreadFactory threadFactory)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
ExtendedThreadPool
setThreadFactory in interface ExtendedThreadPoolthreadFactory - the new thread factoryExtendedThreadPool.getThreadFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||