|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.offheapstore.storage.BooleanHalfStorageEngine
public final class BooleanHalfStorageEngine
| Field Summary | |
|---|---|
static BooleanHalfStorageEngine |
INSTANCE
|
| Method Summary | |
|---|---|
void |
bind(StorageEngine.Owner owner,
long mask)
|
void |
clear()
Called to indicate that all keys and values are now free. |
void |
destroy()
|
boolean |
equals(Object object,
int encoding)
Called to determine the equality of the given Java object value against the given encoded form. |
void |
free(int encoding)
Called to indicate that the associated encoded value is no longer needed. |
long |
getAllocatedMemory()
Returns a measure of the amount of memory allocated for this storage engine. |
long |
getDataSize()
Returns a measure of the total size of the keys and values stored in this storage engine. |
long |
getOccupiedMemory()
Returns a measure of the amount of memory consumed by this storage engine. |
long |
getVitalMemory()
Returns a measure of the amount of vital memory allocated for this storage engine. |
void |
invalidateCache()
Invalidate any local key/value caches. |
Boolean |
read(int encoding)
Converts the supplied encoded value into its correct object form. |
boolean |
shrink()
|
Integer |
write(Boolean object,
int hash)
Converts the supplied value object into it's encoded form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final BooleanHalfStorageEngine INSTANCE
| Method Detail |
|---|
public Integer write(Boolean object,
int hash)
HalfStorageEngine
write in interface HalfStorageEngine<Boolean>public void free(int encoding)
HalfStorageEngineThis call can be used to free any associated resources tied to the lifecycle of the supplied encoded value.
free in interface HalfStorageEngine<Boolean>encoding - encoded valuepublic Boolean read(int encoding)
HalfStorageEngine
read in interface HalfStorageEngine<Boolean>encoding - encoded value
public boolean equals(Object object,
int encoding)
HalfStorageEngine
Simple implementations will probably perform a decode on the given encoded
form in order to do a regular Object.equals(Object) comparison.
This method is provided to allow implementations to optimize this
comparison if possible.
equals in interface HalfStorageEngine<Boolean>encoding - encoded value
true if the value and the encoding are equalpublic void clear()
HalfStorageEngine
clear in interface HalfStorageEngine<Boolean>public long getAllocatedMemory()
HalfStorageEngine
getAllocatedMemory in interface HalfStorageEngine<Boolean>public long getOccupiedMemory()
HalfStorageEngine
getOccupiedMemory in interface HalfStorageEngine<Boolean>public long getVitalMemory()
HalfStorageEngine
getVitalMemory in interface HalfStorageEngine<Boolean>public long getDataSize()
HalfStorageEngine
getDataSize in interface HalfStorageEngine<Boolean>public void invalidateCache()
HalfStorageEngineThis is called to indicate the termination of a map write "phase". Caching is permitted within a write operation (i.e. to cache around allocation failures during eviction processes).
invalidateCache in interface HalfStorageEngine<Boolean>
public void bind(StorageEngine.Owner owner,
long mask)
bind in interface HalfStorageEngine<Boolean>public void destroy()
destroy in interface HalfStorageEngine<Boolean>public boolean shrink()
shrink in interface HalfStorageEngine<Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||