Package com.tnsai.rag

Class KnowledgeScope.Lease

java.lang.Object
com.tnsai.rag.KnowledgeScope.Lease
All Implemented Interfaces:
AutoCloseable
Enclosing class:
KnowledgeScope

public static final class KnowledgeScope.Lease extends Object implements AutoCloseable
One thread-bound hold on the scope's resources.
  • Method Details

    • fork

      public KnowledgeScope.Lease fork()
      Extends this already active turn onto the calling worker thread. The worker must close its own returned lease. A closed scope accepts this only while the parent lease is still active.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable