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()
MemoryHandler
getCost
in interface MemoryHandler
public long freeMemory(double percentage)
MemoryHandler
freeMemory
in interface MemoryHandler
percentage
- the percentagepublic long tidyUp()
MemoryHandler
tidyUp
in interface MemoryHandler
public void remove(java.lang.String key)
key
- the key to removepublic long panicFreeMemory()
panicFreeMemory
in interface MemoryHandler
public long queuedFreeMemory(double percentage)
MemoryHandler
queuedFreeMemory
in interface MemoryHandler
percentage
- the percentage@CheckReturnValue @Nonnegative public long getEstimatedSize()
MemoryHandler
getEstimatedSize
in interface MemoryHandler
public long getLastAccessed()
MemoryHandler
getLastAccessed
in interface MemoryHandler
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.