public class AgentThreadFactory extends Object implements ThreadFactory
The threads created by this factory are identified with the runnable agent name and unique, sequential number.
The threads are also set up as non-daemon, to secure Process finalization before system shutdown.
| Constructor and Description |
|---|
AgentThreadFactory(String agentName)
Creates a new thread factory for the agent identified by the given name.
|
public AgentThreadFactory(String agentName)
agentName - the agent name to compose new thread names; not nullIllegalArgumentException - if the specified name is either null or emptyCopyright © 2021. All rights reserved.