Package com.tnsai.rag
Class KnowledgeScope.Lease
java.lang.Object
com.tnsai.rag.KnowledgeScope.Lease
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
KnowledgeScope
One thread-bound hold on the scope's resources.
-
Method Details
-
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:
closein interfaceAutoCloseable
-