test_class.declarator: cacheLoader
test_class.modifier: @Mock
test_class.original_string: @Mock
    CacheLoader<String, String> cacheLoader;
test_class.type: CacheLoader<String, String>
test_class.var_name: cacheLoader
test_class.declarator: evictionListener
test_class.modifier: @Mock
test_class.original_string: @Mock
    EvictionListener<String, String> evictionListener;
test_class.type: EvictionListener<String, String>
test_class.var_name: evictionListener
test_class.declarator: indexHandler
test_class.modifier: @Mock
test_class.original_string: @Mock
    IndexHandler<String, String> indexHandler;
test_class.type: IndexHandler<String, String>
test_class.var_name: indexHandler
test_class.declarator: serializer = new Serializer<String>() {
  
      @Override
      public byte[] serialize(String value) {
        return value.getBytes();
      }
  
      @Override
      public String deserialize(byte[] payload) {
        return new String(payload);
      }
    }
test_class.original_string: Serializer<String> serializer = new Serializer<String>() {
  
      @Override
      public byte[] serialize(String value) {
        return value.getBytes();
      }
  
      @Override
      public String deserialize(byte[] payload) {
        return new String(payload);
      }
    };
test_class.type: Serializer<String>
test_class.var_name: serializer
test_class.declarator: bufferStore = new OffHeapByteBufferStore(1000, 2)
test_class.modifier: @Spy
test_class.original_string: @Spy
    OffHeapByteBufferStore bufferStore = new OffHeapByteBufferStore(1000, 2);
test_class.type: OffHeapByteBufferStore
test_class.var_name: bufferStore
test_class.declarator: cache
test_class.original_string: OffHeapCache<String, String> cache;
test_class.type: OffHeapCache<String, String>
test_class.var_name: cache
test_class.file: imcache-offheap/src/test/java/com/cetsoft/imcache/offheap/OffHeapCacheTest.java
test_class.identifier: OffHeapCacheTest
test_case.body: @Test
    public void clear() {
      cache.clear();
      verify(bufferStore).free();
    }
test_case.class_method_signature: OffHeapCacheTest.clear()
test_case.full_signature: @Test public void clear()
test_case.identifier: clear
test_case.invocations: clear free verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void clear()
focal_class.declarator: DEFAULT_BUFFER_CLEANER_PERIOD = 10 * 60 * 1000
focal_class.modifier: public static final
focal_class.original_string: public static final long DEFAULT_BUFFER_CLEANER_PERIOD = 10 * 60 * 1000;
focal_class.type: long
focal_class.var_name: DEFAULT_BUFFER_CLEANER_PERIOD
focal_class.declarator: DEFAULT_EVICTION_PERIOD = 10 * 60 * 1000
focal_class.modifier: public static final
focal_class.original_string: public static final long DEFAULT_EVICTION_PERIOD = 10 * 60 * 1000;
focal_class.type: long
focal_class.var_name: DEFAULT_EVICTION_PERIOD
focal_class.declarator: DEFAULT_BUFFER_CLEANER_THRESHOLD = 0.5f
focal_class.modifier: public static final
focal_class.original_string: public static final float DEFAULT_BUFFER_CLEANER_THRESHOLD = 0.5f;
focal_class.type: float
focal_class.var_name: DEFAULT_BUFFER_CLEANER_THRESHOLD
focal_class.declarator: DEFAULT_CONCURRENCY_LEVEL = 4
focal_class.modifier: public static final
focal_class.original_string: public static final int DEFAULT_CONCURRENCY_LEVEL = 4;
focal_class.type: int
focal_class.var_name: DEFAULT_CONCURRENCY_LEVEL
focal_class.declarator: DELTA = 0.00001f
focal_class.modifier: private static final
focal_class.original_string: private static final float DELTA = 0.00001f;
focal_class.type: float
focal_class.var_name: DELTA
focal_class.declarator: NO_OF_CLEANERS = new AtomicInteger()
focal_class.modifier: private static final
focal_class.original_string: private static final AtomicInteger NO_OF_CLEANERS = new AtomicInteger();
focal_class.type: AtomicInteger
focal_class.var_name: NO_OF_CLEANERS
focal_class.declarator: NO_OF_EVICTORS = new AtomicInteger()
focal_class.modifier: private static final
focal_class.original_string: private static final AtomicInteger NO_OF_EVICTORS = new AtomicInteger();
focal_class.type: AtomicInteger
focal_class.var_name: NO_OF_EVICTORS
focal_class.declarator: stats = new ConcurrentCacheStats()
focal_class.modifier: private final
focal_class.original_string: private final ConcurrentCacheStats stats = new ConcurrentCacheStats();
focal_class.type: ConcurrentCacheStats
focal_class.var_name: stats
focal_class.declarator: evictionPeriod
focal_class.modifier: private final
focal_class.original_string: private final long evictionPeriod;
focal_class.type: long
focal_class.var_name: evictionPeriod
focal_class.declarator: pointerMap = new ConcurrentHashMap<K, Pointer>()
focal_class.modifier: protected
focal_class.original_string: protected ConcurrentMap<K, Pointer> pointerMap = new ConcurrentHashMap<K, Pointer>();
focal_class.type: ConcurrentMap<K, Pointer>
focal_class.var_name: pointerMap
focal_class.declarator: serializer
focal_class.modifier: private
focal_class.original_string: private Serializer<V> serializer;
focal_class.type: Serializer<V>
focal_class.var_name: serializer
focal_class.declarator: bufferStore
focal_class.modifier: private
focal_class.original_string: private OffHeapByteBufferStore bufferStore;
focal_class.type: OffHeapByteBufferStore
focal_class.var_name: bufferStore
focal_class.declarator: readWriteLock
focal_class.modifier: private
focal_class.original_string: private StripedReadWriteLock readWriteLock;
focal_class.type: StripedReadWriteLock
focal_class.var_name: readWriteLock
focal_class.file: imcache-offheap/src/main/java/com/cetsoft/imcache/offheap/OffHeapCache.java
focal_class.identifier: OffHeapCache
focal_class.class_method_signature: OffHeapCache.OffHeapCache(final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        final IndexHandler<K, V> indexHandler, final OffHeapByteBufferStore byteBufferStore,
        final Serializer<V> serializer,
        final long bufferCleanerPeriod, final float bufferCleanerThreshold,
        final int concurrencyLevel,
        final long evictionPeriod)
focal_class.full_signature: public  OffHeapCache(final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        final IndexHandler<K, V> indexHandler, final OffHeapByteBufferStore byteBufferStore,
        final Serializer<V> serializer,
        final long bufferCleanerPeriod, final float bufferCleanerThreshold,
        final int concurrencyLevel,
        final long evictionPeriod)
focal_class.identifier: OffHeapCache
focal_class.modifiers: public
focal_class.parameters: (final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        final IndexHandler<K, V> indexHandler, final OffHeapByteBufferStore byteBufferStore,
        final Serializer<V> serializer,
        final long bufferCleanerPeriod, final float bufferCleanerThreshold,
        final int concurrencyLevel,
        final long evictionPeriod)
focal_class.signature:  OffHeapCache(final String name, final CacheLoader<K, V> cacheLoader,
        final EvictionListener<K, V> evictionListener,
        final IndexHandler<K, V> indexHandler, final OffHeapByteBufferStore byteBufferStore,
        final Serializer<V> serializer,
        final long bufferCleanerPeriod, final float bufferCleanerThreshold,
        final int concurrencyLevel,
        final long evictionPeriod)
focal_class.class_method_signature: OffHeapCache.initCache(OffHeapByteBufferStore byteBufferStore, Serializer<V> serializer,
        long bufferCleanerPeriod, final float bufferCleanerThreshold, int concurrencyLevel)
focal_class.full_signature: protected void initCache(OffHeapByteBufferStore byteBufferStore, Serializer<V> serializer,
        long bufferCleanerPeriod, final float bufferCleanerThreshold, int concurrencyLevel)
focal_class.identifier: initCache
focal_class.modifiers: protected
focal_class.parameters: (OffHeapByteBufferStore byteBufferStore, Serializer<V> serializer,
        long bufferCleanerPeriod, final float bufferCleanerThreshold, int concurrencyLevel)
focal_class.return: void
focal_class.signature: void initCache(OffHeapByteBufferStore byteBufferStore, Serializer<V> serializer,
        long bufferCleanerPeriod, final float bufferCleanerThreshold, int concurrencyLevel)
focal_class.class_method_signature: OffHeapCache.put(K key, V value)
focal_class.full_signature: public void put(K key, V value)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (K key, V value)
focal_class.return: void
focal_class.signature: void put(K key, V value)
focal_class.class_method_signature: OffHeapCache.put(final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.full_signature: @Override public void put(final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.return: void
focal_class.signature: void put(final K key, final V value, final TimeUnit timeUnit, final long duration)
focal_class.class_method_signature: OffHeapCache.get(K key)
focal_class.full_signature: public V get(K key)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (K key)
focal_class.return: V
focal_class.signature: V get(K key)
focal_class.class_method_signature: OffHeapCache.invalidate(K key)
focal_class.full_signature: public V invalidate(K key)
focal_class.identifier: invalidate
focal_class.modifiers: public
focal_class.parameters: (K key)
focal_class.return: V
focal_class.signature: V invalidate(K key)
focal_class.class_method_signature: OffHeapCache.contains(K key)
focal_class.full_signature: public boolean contains(K key)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (K key)
focal_class.return: boolean
focal_class.signature: boolean contains(K key)
focal_class.class_method_signature: OffHeapCache.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: OffHeapCache.size()
focal_class.full_signature: @Override public long size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long size()
focal_class.class_method_signature: OffHeapCache.stats()
focal_class.full_signature: @Override public CacheStats stats()
focal_class.identifier: stats
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CacheStats
focal_class.signature: CacheStats stats()
focal_class.class_method_signature: OffHeapCache.readLock(K key)
focal_class.full_signature: protected void readLock(K key)
focal_class.identifier: readLock
focal_class.modifiers: protected
focal_class.parameters: (K key)
focal_class.return: void
focal_class.signature: void readLock(K key)
focal_class.class_method_signature: OffHeapCache.readUnlock(K key)
focal_class.full_signature: protected void readUnlock(K key)
focal_class.identifier: readUnlock
focal_class.modifiers: protected
focal_class.parameters: (K key)
focal_class.return: void
focal_class.signature: void readUnlock(K key)
focal_class.class_method_signature: OffHeapCache.writeLock(K key)
focal_class.full_signature: protected void writeLock(K key)
focal_class.identifier: writeLock
focal_class.modifiers: protected
focal_class.parameters: (K key)
focal_class.return: void
focal_class.signature: void writeLock(K key)
focal_class.class_method_signature: OffHeapCache.writeUnlock(K key)
focal_class.full_signature: protected void writeUnlock(K key)
focal_class.identifier: writeUnlock
focal_class.modifiers: protected
focal_class.parameters: (K key)
focal_class.return: void
focal_class.signature: void writeUnlock(K key)
focal_class.class_method_signature: OffHeapCache.cleanBuffers(final float bufferCleanerThreshold)
focal_class.full_signature: protected void cleanBuffers(final float bufferCleanerThreshold)
focal_class.identifier: cleanBuffers
focal_class.modifiers: protected
focal_class.parameters: (final float bufferCleanerThreshold)
focal_class.return: void
focal_class.signature: void cleanBuffers(final float bufferCleanerThreshold)
focal_class.class_method_signature: OffHeapCache.getDirtyRatio(final Pointer pointer)
focal_class.full_signature: protected float getDirtyRatio(final Pointer pointer)
focal_class.identifier: getDirtyRatio
focal_class.modifiers: protected
focal_class.parameters: (final Pointer pointer)
focal_class.return: float
focal_class.signature: float getDirtyRatio(final Pointer pointer)
focal_class.class_method_signature: OffHeapCache.doEviction()
focal_class.full_signature: protected void doEviction()
focal_class.identifier: doEviction
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void doEviction()
focal_class.superclass: extends AbstractSearchableCache<K, V>
focal_method.body: public void clear() {
      synchronized (this) {
        pointerMap.clear();
        bufferStore.free();
        indexHandler.clear();
      }
    }
focal_method.class_method_signature: OffHeapCache.clear()
focal_method.full_signature: public void clear()
focal_method.identifier: clear
focal_method.invocations: clear free clear
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void clear()