java.lang.Object
java.util.concurrent.AbstractExecutorService
org.glassfish.grizzly.threadpool.GrizzlyExecutorService
- All Implemented Interfaces:
Executor
,ExecutorService
,MonitoringAware<ThreadPoolProbe>
public class GrizzlyExecutorService
extends AbstractExecutorService
implements MonitoringAware<ThreadPoolProbe>
- Author:
- gustav trede
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) static GrizzlyExecutorService
static GrizzlyExecutorService
void
Return the object associatedMonitoringConfig
.boolean
boolean
reconfigure
(ThreadPoolConfig config) Sets theThreadPoolConfig
protected final void
setImpl
(ThreadPoolConfig cfg) void
shutdown()
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Field Details
-
config
-
-
Constructor Details
-
GrizzlyExecutorService
-
-
Method Details
-
createInstance
- Returns:
GrizzlyExecutorService
-
createInstance
- Parameters:
cfg
-ThreadPoolConfig
- Returns:
GrizzlyExecutorService
-
setImpl
-
reconfigure
Sets theThreadPoolConfig
- Parameters:
config
-- Returns:
- returns
GrizzlyExecutorService
-
getConfiguration
- Returns:
- config -
ThreadPoolConfig
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceExecutorService
-
shutdownNow
- Specified by:
shutdownNow
in interfaceExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfaceExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminated
in interfaceExecutorService
-
execute
-
awaitTermination
- Specified by:
awaitTermination
in interfaceExecutorService
- Throws:
InterruptedException
-
getMonitoringConfig
Return the object associatedMonitoringConfig
.- Specified by:
getMonitoringConfig
in interfaceMonitoringAware<ThreadPoolProbe>
- Returns:
- the object associated
MonitoringConfig
.
-