public class ClientOutOfMemoryHandler extends com.hazelcast.instance.impl.DefaultOutOfMemoryHandler
|Constructor and Description|
|Modifier and Type||Method and Description|
public void onOutOfMemory(OutOfMemoryError oome, HazelcastInstance hazelcastInstances)
OutOfMemoryErroris caught by Hazelcast threads, this method is called for ALL
HazelcastInstances knows by current JVM (actually ClassLoader).
User can shutdown the
just log the error, etc.
The default handler tries to close socket connections to other nodes and shutdown the
OutOfMemoryHandler may not be called even if JVM throws
because the error may be thrown from an external (user) thread
and Hazelcast may not be informed about
oome- OutOfMemoryError thrown by JVM
hazelcastInstances- All HazelcastInstances known by JVM, can include inactive or NULL instances.
Copyright © 2020 Hazelcast, Inc.. All rights reserved.