Package jakarta.enterprise.concurrent
Interface ManageableThread
public interface ManageableThread
Interface to be implemented by the Jakarta™ EE product providers on threads
that are created by calling
ThreadFactory.newThread(java.lang.Runnable)
.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method is used by the application component provider to check whether a thread created by thenewThread
method ofManagedThreadFactory
has been marked for shut down.
-
Method Details
-
isShutdown
boolean isShutdown()This method is used by the application component provider to check whether a thread created by thenewThread
method ofManagedThreadFactory
has been marked for shut down. If the value is true, the application component provider should finish any work on this thread as soon as possible.- Returns:
- true if this thread has been marked for shutdown.
-