Package one.nio.mem
Class OffheapMap.WritableRecord<K,V>
- java.lang.Object
-
- one.nio.mem.OffheapMap.Record<K,V>
-
- one.nio.mem.OffheapMap.WritableRecord<K,V>
-
- Enclosing class:
- OffheapMap<K,V>
public static class OffheapMap.WritableRecord<K,V> extends OffheapMap.Record<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected longcurrentPtrprotected Kkey-
Fields inherited from class one.nio.mem.OffheapMap.Record
entry, lock, map
-
-
Constructor Summary
Constructors Constructor Description WritableRecord(OffheapMap<K,V> map, RWLock lock, long entry, K key, long currentPtr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcreate(int entrySize)longcurrentPtr()booleanisNull()booleanisNullOrExpired()Kkey()voidrelease()voidremove()voidsetValue(V value)voidtouch()
-
-
-
Field Detail
-
key
protected K key
-
currentPtr
protected long currentPtr
-
-
Constructor Detail
-
WritableRecord
public WritableRecord(OffheapMap<K,V> map, RWLock lock, long entry, K key, long currentPtr)
-
-
Method Detail
-
setValue
public void setValue(V value) throws OutOfMemoryException
- Throws:
OutOfMemoryException
-
create
public long create(int entrySize) throws OutOfMemoryException- Throws:
OutOfMemoryException
-
touch
public void touch()
- Overrides:
touchin classOffheapMap.Record<K,V>
-
remove
public void remove()
-
isNull
public boolean isNull()
-
isNullOrExpired
public boolean isNullOrExpired()
-
currentPtr
public long currentPtr()
-
key
public K key()
- Overrides:
keyin classOffheapMap.Record<K,V>
-
release
public void release()
- Overrides:
releasein classOffheapMap.Record<K,V>
-
-