@FunctionalInterface public interface MemoryManagerClient
void memoryLow(java.util.concurrent.Phaser phaser)
MemoryManagerwhich this client registers to, when the available heap memory is low. It is expected that the client performs some clean up action to help with dealing with this shortage of memory. Client needs to signal the
MemoryManagerwhen that action completes. The passed phaser needs to be used for that purpose. Client should register with this phaser before performing the clean up and arrive and deregister itself after clean up is done. If no cleanup is possible/required, just register and arrive and deregister immediately.
phaser- phaser used to coordinate with
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.