public interface MemoryManager
Modifier and Type | Interface and Description |
---|---|
static class |
MemoryManager.Type
Indicates type of memory management this instance does.
|
Modifier and Type | Method and Description |
---|---|
void |
changeMemoryUsedBy(long memory)
Adds the provided memory value to existing memory usage.
|
boolean |
deregisterClient(java.lang.String registrationID)
Deregister a client with the given registrationID.
|
MemoryManager.Type |
getType() |
boolean |
isMemoryLow()
Checks if available memory is low.
|
java.util.Optional<java.lang.String> |
registerClient(MemoryManagerClient client)
Register a client with this memory manager.
|
MemoryManager.Type getType()
java.util.Optional<java.lang.String> registerClient(MemoryManagerClient client)
MemoryManager.Type.JMX_BASED
instance types, otherwise it throws UnsupportedOperationException
client
- client to registerboolean deregisterClient(java.lang.String registrationID)
MemoryManager.Type.JMX_BASED
instance types, otherwise it throws UnsupportedOperationException
registrationID
- registration id of client to deregisterboolean isMemoryLow()
MemoryManager.Type.SELF_MANAGED
instance types, otherwise it throws UnsupportedOperationException
void changeMemoryUsedBy(long memory)
MemoryManager.Type.SELF_MANAGED
instance types, otherwise it throws UnsupportedOperationException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.