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 TypeMethodDescriptionbooleanThis method is used by the application component provider to check whether a thread created by thenewThreadmethod ofManagedThreadFactoryhas 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 thenewThreadmethod ofManagedThreadFactoryhas 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.
-