Package org.apache.flink.util
Class ResourceGuard.Lease
- java.lang.Object
-
- org.apache.flink.util.ResourceGuard.Lease
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- ResourceGuard
public class ResourceGuard.Lease extends Object implements AutoCloseable
A lease is issued by theResourceGuard
as result of calls toResourceGuard.acquireResource()
. The owner of the lease can release it via theclose()
call.
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-