On this page
Interface ResourceScope.Handle
- Enclosing interface:
- ResourceScope
public static sealed interface ResourceScope.Handle
An abstraction modelling a resource scope handle. A resource scope handle is typically acquired by clients in order to prevent an explicit resource scope from being closed while executing a certain operation. Once obtained, resource scope handles can be ResourceScope.release(Handle) released}; an explicit resource scope can be closed only after all the resource scope handles acquired from it have been released.
Method Summary
Modifier and Type | Method | Description |
---|---|---|
ResourceScope |
scope() |
Returns the resource scope associated with this handle.
|
Method Details
scope
ResourceScope scope()
Returns the resource scope associated with this handle.
- Returns:
- the resource scope associated with this handle.
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/jdk.incubator.foreign/jdk/incubator/foreign/ResourceScope.Handle.html