public class DirectMemoryMonitor extends BlobStoreMemoryMonitor
MEMORY_MONITOR_PROPERTY_NAME
Constructor and Description |
---|
DirectMemoryMonitor(String spaceName,
int writeThresholdPrecentage,
DirectMemoryCompactor directMemoryCompacter) |
Modifier and Type | Method and Description |
---|---|
static double |
getMaxDirectMemory() |
String |
getSpaceName() |
int |
getWriteThresholdPrecentage() |
void |
onMemoryAllocation(Serializable id)
verify that the designated threshold was not exceeded and throw
BlobStoreMemoryShortageException
|
public DirectMemoryMonitor(String spaceName, int writeThresholdPrecentage, DirectMemoryCompactor directMemoryCompacter)
public void onMemoryAllocation(Serializable id) throws BlobStoreMemoryShortageException
BlobStoreMemoryMonitor
onMemoryAllocation
in class BlobStoreMemoryMonitor
id
- the blob-store id of the object about to be put/replacedBlobStoreMemoryShortageException
public static double getMaxDirectMemory()
public int getWriteThresholdPrecentage()
public String getSpaceName()
Copyright © GigaSpaces.