org.terracotta.offheapstore.storage
Interface StorageEngine.Owner

All Superinterfaces:
ReadWriteLock
All Known Implementing Classes:
AbstractLockedOffHeapHashMap, AbstractOffHeapClockCache, AbstractPersistentLockedOffHeapHashMap, AbstractPersistentOffHeapCache, EvictionListeningReadWriteLockedOffHeapClockCache, EvictionListeningWriteLockedOffHeapClockCache, OffHeapHashMap, PersistentReadWriteLockedOffHeapClockCache, PersistentReadWriteLockedOffHeapHashMap, ReadWriteLockedOffHeapClockCache, ReadWriteLockedOffHeapHashMap, WriteLockedOffHeapClockCache, WriteLockedOffHeapHashMap
Enclosing interface:
StorageEngine<K,V>

public static interface StorageEngine.Owner
extends ReadWriteLock


Method Summary
 Iterable<Long> encodingSet()
           
 boolean evict(int slot, boolean b)
           
 Long getEncodingForHashAndBinary(int hash, ByteBuffer offHeapBinaryKey)
           
 long getSize()
           
 Integer getSlotForHashAndEncoding(int hash, long address, long mask)
           
 long installMappingForHashAndEncoding(int pojoHash, ByteBuffer offheapBinaryKey, ByteBuffer offheapBinaryValue, int metadata)
           
 boolean isThiefForTableAllocations()
           
 boolean updateEncoding(int hashCode, long lastAddress, long compressed, long mask)
           
 
Methods inherited from interface java.util.concurrent.locks.ReadWriteLock
readLock, writeLock
 

Method Detail

getEncodingForHashAndBinary

Long getEncodingForHashAndBinary(int hash,
                                 ByteBuffer offHeapBinaryKey)

getSize

long getSize()

installMappingForHashAndEncoding

long installMappingForHashAndEncoding(int pojoHash,
                                      ByteBuffer offheapBinaryKey,
                                      ByteBuffer offheapBinaryValue,
                                      int metadata)

encodingSet

Iterable<Long> encodingSet()

updateEncoding

boolean updateEncoding(int hashCode,
                       long lastAddress,
                       long compressed,
                       long mask)

getSlotForHashAndEncoding

Integer getSlotForHashAndEncoding(int hash,
                                  long address,
                                  long mask)

evict

boolean evict(int slot,
              boolean b)

isThiefForTableAllocations

boolean isThiefForTableAllocations()


Copyright © 2016. All Rights Reserved.