public interface MemoryHandler
Modifier and Type | Interface and Description |
---|---|
static class |
MemoryHandler.Cost |
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.
|
long |
queuedFreeMemory(double percentage)
This method should implement the freeing of the method and maybe synchronized.
|
long |
tidyUp()
Tidy up the memory handler
|
@Nonnull @CheckReturnValue MemoryHandler.Cost getCost()
@Nonnegative long freeMemory(@Nonnegative double percentage)
percentage
- to be freed@Nonnegative long tidyUp()
@Nonnegative long queuedFreeMemory(@Nonnegative double percentage)
percentage
- The percentage to be cleared.@Nonnegative long panicFreeMemory()
@CheckReturnValue @Nonnegative long getEstimatedSize()
@CheckReturnValue @Nonnegative long getLastAccessed()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.