com.hazelcast.instance
Class OutOfMemoryErrorDispatcher
java.lang.Object
com.hazelcast.instance.OutOfMemoryErrorDispatcher
public final class OutOfMemoryErrorDispatcher
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setServerHandler
public static void setServerHandler(OutOfMemoryHandler outOfMemoryHandler)
setClientHandler
public static void setClientHandler(OutOfMemoryHandler outOfMemoryHandler)
registerServer
public static void registerServer(HazelcastInstance instance)
registerClient
public static void registerClient(HazelcastInstance instance)
deregisterServer
public static void deregisterServer(HazelcastInstance instance)
deregisterClient
public static void deregisterClient(HazelcastInstance instance)
clearServers
public static void clearServers()
clearClients
public static void clearClients()
inspectOutputMemoryError
public static void inspectOutputMemoryError(Throwable throwable)
onOutOfMemory
public static void onOutOfMemory(OutOfMemoryError outOfMemoryError)
- Signals the OutOfMemoryErrorDispatcher that an OutOfMemoryError happened.
If there are any registered instances, they are automatically unregistered. This is done to prevent creating
new objects during the deregistration process while the system is suffering from a shortage of memory.
- Parameters:
outOfMemoryError
- the out of memory error
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.