7.7.1 Explicit release reserving of the Explicit memory block when the automatic release functionality is enabled
In explicit release reserving of the Explicit memory block when the automatic release functionality is enabled, explicitly reserve release for the Explicit memory block by using the API.
- Organization of this subsection
(1) Execution timing
You can reserve explicit release of the Explicit memory block when the automatic release functionality is enabled, by invoking one of the following Explicit Memory Management functionality APIs.
-
ExplicitMemory.reclaim(ExplicitMemory... areas)
-
ExplicitMemory.reclaim(ExplicitMemory area)
-
ExplicitMemory.reclaim(ExplicitMemory area0,ExplicitMemory area1)
-
ExplicitMemory.reclaim(Iterable<ExplicitMemory> areas)
-
BasicExplicitMemory.finalize()
(2) Executed details
When you invoke an API described in (1), the Explicit memory block area that you specified in the argument of the API is reserved for release.
If you are using the API in an incorrect way, an API level exception might occur. For details, see 10.7 Exception class in the uCosminexus Application Server API Reference Guide.