Package io.awspring.cloud.sqs
Class MessageExecutionThreadFactory
java.lang.Object
org.springframework.util.CustomizableThreadCreator
org.springframework.scheduling.concurrent.CustomizableThreadFactory
io.awspring.cloud.sqs.MessageExecutionThreadFactory
- All Implemented Interfaces:
Serializable
,ThreadFactory
CustomizableThreadFactory
implementation for creating MessageExecutionThread
instances. This should
be set to TaskExecutor
instances provided by
ContainerOptions.getComponentsTaskExecutor()
to avoid excessive thread hopping for blocking components.- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new MessageExecutionThreadFactory with default thread name prefix.MessageExecutionThreadFactory
(String threadNamePrefix) Create a new MessageExecutionThreadFactory with the given thread name prefix. -
Method Summary
Methods inherited from class org.springframework.scheduling.concurrent.CustomizableThreadFactory
newThread
Methods inherited from class org.springframework.util.CustomizableThreadCreator
getDefaultThreadNamePrefix, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, nextThreadName, setDaemon, setThreadGroup, setThreadGroupName, setThreadNamePrefix, setThreadPriority
-
Constructor Details
-
MessageExecutionThreadFactory
public MessageExecutionThreadFactory()Create a new MessageExecutionThreadFactory with default thread name prefix. -
MessageExecutionThreadFactory
Create a new MessageExecutionThreadFactory with the given thread name prefix.- Parameters:
threadNamePrefix
- the prefix to use for the names of newly created threads
-
-
Method Details
-
createThread
- Overrides:
createThread
in classCustomizableThreadCreator
-