Class SQSMessagingClientThreadFactory
java.lang.Object
com.amazon.sqs.javamessaging.util.SQSMessagingClientThreadFactory
- All Implemented Interfaces:
ThreadFactory
Simple thread factory that supports ThreadGroups
-
Constructor Summary
ConstructorsConstructorDescriptionSQSMessagingClientThreadFactory
(String taskName, boolean isDaemon) SQSMessagingClientThreadFactory
(String taskName, boolean isDaemon, boolean createWithThreadGroup) SQSMessagingClientThreadFactory
(String taskName, ThreadGroup threadGroup) -
Method Summary
Modifier and TypeMethodDescriptionConstructs a new Thread.boolean
Checks if the thread is member of the thread group
-
Constructor Details
-
SQSMessagingClientThreadFactory
-
SQSMessagingClientThreadFactory
public SQSMessagingClientThreadFactory(String taskName, boolean isDaemon, boolean createWithThreadGroup) -
SQSMessagingClientThreadFactory
-
-
Method Details
-
newThread
Constructs a new Thread. Initializes name, daemon status, and ThreadGroup if there is any.- Specified by:
newThread
in interfaceThreadFactory
- Parameters:
r
- A runnable to be executed by new thread instance- Returns:
- The constructed thread
-
wasThreadCreatedWithThisThreadGroup
Checks if the thread is member of the thread group- Parameters:
thread
-- Returns:
- True If there is a thread group and the given thread is member of the group
-