|
||||||||||
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 ThreadPoolMonitoringProbe s to intercept
thread pool events and build statistics. |
long |
getCompletedTaskCount()
Deprecated. please use ThreadPoolMonitoringProbe s 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 ThreadPoolMonitoringProbe s 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 ThreadPoolMonitoringProbe s 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 ThreadPoolMonitoringProbe s to intercept
thread pool events and build statistics. |
int |
getTaskCount()
Deprecated. please use ThreadPoolMonitoringProbe s 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, newTaskFor, newTaskFor, 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()
GrizzlyExecutorService
public static GrizzlyExecutorService createInstance(ThreadPoolConfig cfg)
cfg
- ThreadPoolConfig
GrizzlyExecutorService
protected final void setImpl(ThreadPoolConfig cfg)
public GrizzlyExecutorService reconfigure(ThreadPoolConfig config)
ThreadPoolConfig
config
-
GrizzlyExecutorService
public ThreadPoolConfig getConfiguration()
ThreadPoolConfig
public void shutdown()
shutdown
in interface ExecutorService
public List<Runnable> shutdownNow()
shutdownNow
in interface ExecutorService
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isTerminated()
isTerminated
in interface ExecutorService
public void execute(Runnable r)
execute
in interface Executor
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
@Deprecated public Queue<Runnable> getQueue()
getConfiguration()
to check thread pool configuration settings.
ExtendedThreadPool
getQueue
in interface ExtendedThreadPool
@Deprecated public int getActiveCount()
ThreadPoolMonitoringProbe
s to intercept
thread pool events and build statistics.
ExtendedThreadPool
getActiveCount
in interface ExtendedThreadPool
@Deprecated public int getTaskCount()
ThreadPoolMonitoringProbe
s to intercept
thread pool events and build statistics.
ExtendedThreadPool
getTaskCount
in interface ExtendedThreadPool
@Deprecated public long getCompletedTaskCount()
ThreadPoolMonitoringProbe
s 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 ExtendedThreadPool
ExtendedThreadPool.setCorePoolSize(int)
@Deprecated public void setCorePoolSize(int corePoolSize)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
ExtendedThreadPool
setCorePoolSize
in interface ExtendedThreadPool
corePoolSize
- the new core sizeExtendedThreadPool.getCorePoolSize()
@Deprecated public int getLargestPoolSize()
ThreadPoolMonitoringProbe
s to intercept
thread pool events and build statistics.
ExtendedThreadPool
getLargestPoolSize
in interface ExtendedThreadPool
@Deprecated public int getPoolSize()
ThreadPoolMonitoringProbe
s to intercept
thread pool events and build statistics.
ExtendedThreadPool
getPoolSize
in interface ExtendedThreadPool
@Deprecated public int getQueueSize()
ThreadPoolMonitoringProbe
s 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 ExtendedThreadPool
unit
- 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 ExtendedThreadPool
time
- 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 ExtendedThreadPool
ExtendedThreadPool.setMaximumPoolSize(int)
@Deprecated public void setMaximumPoolSize(int maximumPoolSize)
reconfigure(com.sun.grizzly.util.ThreadPoolConfig)
to change thread pool configuration settings.
ExtendedThreadPool
setMaximumPoolSize
in interface ExtendedThreadPool
maximumPoolSize
- 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 ExtendedThreadPool
public 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 ExtendedThreadPool
ExtendedThreadPool.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 ExtendedThreadPool
threadFactory
- the new thread factoryExtendedThreadPool.getThreadFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |