Interface AgentContext
-
- All Known Implementing Classes:
AgentContextImpl
@PublicApi public interface AgentContextAllows 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 voidclearBuildAgent()Removes whatever is currently stored in thread local@Nullable ExecutableBuildAgentgetBuildAgent()Current build agent.voidsetBuildAgent(@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
-
-