Object AgentProcess.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static AgentProcess get() Get the current agent process for this thread, if any.
      final <T extends Any> T withCurrent(AgentProcess $self, Function0<T> block) Execute a block with this AgentProcess as the current process for the thread.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • get

         final static AgentProcess get()

        Get the current agent process for this thread, if any.

      • withCurrent

         final <T extends Any> T withCurrent(AgentProcess $self, Function0<T> block)

        Execute a block with this AgentProcess as the current process for the thread. Properly saves and restores any previous value, ensuring cleanup even on exception.