Interface AgentContext
- All Known Implementing Classes:
AgentContextImpl
@PublicApi
public interface AgentContext
Allows you to retrieve a reference to the agent for the current thread
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes whatever is currently stored in thread local@Nullable ExecutableBuildAgent
Current build agent.void
setBuildAgent
(@Nullable ExecutableBuildAgent buildAgent) Stores a agent set within the ThreadLocal
-
Method Details
-
getBuildAgent
Current build agent. Null if no agent is running this, it will return null- Returns:
-
setBuildAgent
Stores a agent set within the ThreadLocal- Parameters:
buildAgent
-
-
clearBuildAgent
void clearBuildAgent()Removes whatever is currently stored in thread local
-