java.lang.Object
java.util.concurrent.AbstractExecutorService
org.glassfish.grizzly.threadpool.GrizzlyExecutorService
- All Implemented Interfaces:
AutoCloseable,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 TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) static GrizzlyExecutorServicestatic GrizzlyExecutorServicevoidReturn the object associatedMonitoringConfig.booleanbooleanreconfigure(ThreadPoolConfig config) Sets theThreadPoolConfigprotected final voidsetImpl(ThreadPoolConfig cfg) voidshutdown()Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
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:
shutdownin interfaceExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService
-
execute
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
getMonitoringConfig
Return the object associatedMonitoringConfig.- Specified by:
getMonitoringConfigin interfaceMonitoringAware<ThreadPoolProbe>- Returns:
- the object associated
MonitoringConfig.
-