public class SlowMemoryHandler extends java.lang.Object implements MemoryHandler
MemoryHandler.Cost| Constructor and Description |
|---|
SlowMemoryHandler()
show memory handler
|
| Modifier and Type | Method and Description |
|---|---|
long |
freeMemory(double percentage)
Free memory at this level and below.
|
MemoryHandler.Cost |
getCost()
The cost level for this MemoryHandler.
|
long |
getEstimatedSize()
The estimated size of data held by this memory handler
|
long |
getLastAccessed()
The last time this memory handle was accessed
|
long |
panicFreeMemory()
Clear all memory ASAP.
|
long |
queuedFreeMemory(double percentage)
This method should implement the freeing of the method and maybe synchronized.
|
void |
remove(java.lang.String key) |
long |
tidyUp()
Tidy up the memory handler
|
public MemoryHandler.Cost getCost()
MemoryHandlergetCost in interface MemoryHandlerpublic long freeMemory(double percentage)
MemoryHandlerfreeMemory in interface MemoryHandlerpercentage - the percentagepublic long tidyUp()
MemoryHandlertidyUp in interface MemoryHandlerpublic void remove(java.lang.String key)
key - the key to removepublic long panicFreeMemory()
panicFreeMemory in interface MemoryHandlerpublic long queuedFreeMemory(double percentage)
MemoryHandlerqueuedFreeMemory in interface MemoryHandlerpercentage - the percentage@CheckReturnValue @Nonnegative public long getEstimatedSize()
MemoryHandlergetEstimatedSize in interface MemoryHandlerpublic long getLastAccessed()
MemoryHandlergetLastAccessed in interface MemoryHandlerstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.