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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearBuildAgent()
Removes whatever is currently stored in thread local@Nullable ExecutableBuildAgent
getBuildAgent()
Current build agent.void
setBuildAgent(@Nullable ExecutableBuildAgent buildAgent)
Stores a agent set within the ThreadLocal
-
-
-
Method Detail
-
getBuildAgent
@Nullable @Nullable ExecutableBuildAgent getBuildAgent()
Current build agent. Null if no agent is running this, it will return null- Returns:
-
setBuildAgent
void setBuildAgent(@Nullable @Nullable ExecutableBuildAgent buildAgent)
Stores a agent set within the ThreadLocal- Parameters:
buildAgent
-
-
clearBuildAgent
void clearBuildAgent()
Removes whatever is currently stored in thread local
-
-