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 Details

    • 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