@PrivateApi public final class OutOfMemoryErrorDispatcher extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clearClients() |
static void |
clearServers() |
static void |
deregisterClient(HazelcastInstance instance) |
static void |
deregisterServer(HazelcastInstance instance) |
static int |
getOutOfMemoryErrorCount()
Gets the number of OutOfMemoryErrors that have been reported.
|
static void |
inspectOutOfMemoryError(Throwable throwable) |
static void |
onOutOfMemory(OutOfMemoryError outOfMemoryError)
Signals the OutOfMemoryErrorDispatcher that an OutOfMemoryError happened.
|
static void |
registerClient(HazelcastInstance instance) |
static void |
registerServer(HazelcastInstance instance) |
static void |
setClientHandler(OutOfMemoryHandler outOfMemoryHandler) |
static void |
setServerHandler(OutOfMemoryHandler outOfMemoryHandler) |
public static int getOutOfMemoryErrorCount()
public static void setServerHandler(OutOfMemoryHandler outOfMemoryHandler)
public static void setClientHandler(OutOfMemoryHandler outOfMemoryHandler)
public static void registerServer(HazelcastInstance instance)
public static void registerClient(HazelcastInstance instance)
public static void deregisterServer(HazelcastInstance instance)
public static void deregisterClient(HazelcastInstance instance)
public static void clearServers()
public static void clearClients()
public static void inspectOutOfMemoryError(Throwable throwable)
public static void onOutOfMemory(OutOfMemoryError outOfMemoryError)
outOfMemoryError
- the out of memory errorCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.