Package org.jboss.as.ee.concurrent
Interface ManagedExecutorWithHungThreads
- All Known Implementing Classes:
ManagedExecutorServiceImpl,ManagedScheduledExecutorServiceImpl
public interface ManagedExecutorWithHungThreads
A managed executor with support for hung threads.
- Author:
- emmartins
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.glassfish.enterprise.concurrent.AbstractManagedThread>getName()default voidAttempts to terminate the executor's hung tasks, by cancelling such tasks.
-
Method Details
-
getName
String getName()- Returns:
- the executor's name
-
terminateHungTasks
default void terminateHungTasks()Attempts to terminate the executor's hung tasks, by cancelling such tasks. -
getHungThreads
Collection<org.glassfish.enterprise.concurrent.AbstractManagedThread> getHungThreads()- Returns:
- the executor's hung threads
-