public class MemoryManager extends Object implements Closeable
Constructor and Description |
---|
MemoryManager(String spaceName,
String containerName,
AbstractCacheManager cacheManager,
LeaseManager leaseManager,
boolean isPrimary) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isEnabled() |
boolean |
isRestartOnFailover() |
void |
monitorMemoryUsage(boolean isWriteTypeOperation)
check if we reached the memory-usage "watermark".
|
boolean |
monitorMemoryUsageWithNoEviction(boolean isWriteTypeOperation) |
public MemoryManager(String spaceName, String containerName, AbstractCacheManager cacheManager, LeaseManager leaseManager, boolean isPrimary)
public boolean isEnabled()
public boolean isRestartOnFailover()
public void monitorMemoryUsage(boolean isWriteTypeOperation) throws MemoryShortageException
isWriteTypeOperation
- is write operationMemoryShortageException
public boolean monitorMemoryUsageWithNoEviction(boolean isWriteTypeOperation)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © GigaSpaces.