-
- All Implemented Interfaces:
-
java.util.concurrent.ThreadFactory
public final class AgentThreadFactory implements ThreadFactory
A ThreadFactory implementation that starts all agent Threads as daemons.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAgentThreadFactory.AgentThread
-
Field Summary
Fields Modifier and Type Field Description public final static ThreadGroupAGENT_THREAD_GROUPpublic final static longTHREAD_JOIN_TIMOUT_MS
-
Constructor Summary
Constructors Constructor Description AgentThreadFactory(AgentThreadFactory.AgentThread agentThread)Constructs a new agent {@code ThreadFactory}.
-
Method Summary
Modifier and Type Method Description ThreadnewThread(Runnable runnable)static ThreadnewAgentThread(AgentThreadFactory.AgentThread agentThread, Runnable runnable)Constructs a new agent {@code Thread}as a daemon with a null ContextClassLoader.static ThreadnewAgentThread(AgentThreadFactory.AgentThread agentThread, Runnable runnable, boolean daemon)static ThreadnewAgentThread(AgentThreadFactory.AgentThread agentThread, String nameSuffix, Runnable runnable, boolean daemon)-
-
Constructor Detail
-
AgentThreadFactory
AgentThreadFactory(AgentThreadFactory.AgentThread agentThread)
Constructs a new agent{@code ThreadFactory}.- Parameters:
agentThread- the agent thread created by this factory.
-
-
Method Detail
-
newAgentThread
static Thread newAgentThread(AgentThreadFactory.AgentThread agentThread, Runnable runnable)
Constructs a new agent
{@code Thread}as a daemon with a null ContextClassLoader.- Parameters:
agentThread- the agent thread to create.runnable- work to run on the new thread.
-
newAgentThread
static Thread newAgentThread(AgentThreadFactory.AgentThread agentThread, Runnable runnable, boolean daemon)
-
newAgentThread
static Thread newAgentThread(AgentThreadFactory.AgentThread agentThread, String nameSuffix, Runnable runnable, boolean daemon)
-
-
-
-