test_class.file: imcache/src/test/java/com/cetsoft/imcache/cache/builder/OffHeapCacheBuilderTest.java
test_class.identifier: OffHeapCacheBuilderTest
test_case.body: @Test
    public void build() {
      OffHeapByteBufferStore bufferStore = new OffHeapByteBufferStore(8388608, 10);
      Cache<Object, Object> cache = CacheBuilder.offHeapCache()
          .storage(bufferStore)
          .cacheLoader(BaseCacheBuilder.DEFAULT_CACHE_LOADER)
          .evictionListener(BaseCacheBuilder.DEFAULT_EVICTION_LISTENER)
          .indexHandler(DummyIndexHandler.getInstance())
          .addIndex("age", IndexType.RANGE_INDEX)
          .serializer(BaseCacheBuilder.DEFAULT_SERIALIZER)
          .bufferCleanerPeriod(100).bufferCleanerThreshold(0.6f).concurrencyLevel(10)
          .evictionPeriod(100).build();
      assertTrue(cache instanceof SearchableCache);
      assertTrue(cache instanceof OffHeapCache);
    }
test_case.class_method_signature: OffHeapCacheBuilderTest.build()
test_case.full_signature: @Test public void build()
test_case.identifier: build
test_case.invocations: build evictionPeriod concurrencyLevel bufferCleanerThreshold bufferCleanerPeriod serializer addIndex indexHandler evictionListener cacheLoader storage offHeapCache getInstance assertTrue assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void build()
focal_class.declarator: cacheNumber = new AtomicInteger()
focal_class.modifier: private final
focal_class.original_string: private final AtomicInteger cacheNumber = new AtomicInteger();
focal_class.type: AtomicInteger
focal_class.var_name: cacheNumber
focal_class.declarator: concurrencyLevel
focal_class.modifier: private
focal_class.original_string: private int concurrencyLevel;
focal_class.type: int
focal_class.var_name: concurrencyLevel
focal_class.declarator: evictionPeriod
focal_class.modifier: private
focal_class.original_string: private long evictionPeriod;
focal_class.type: long
focal_class.var_name: evictionPeriod
focal_class.declarator: bufferCleanerPeriod
focal_class.modifier: private
focal_class.original_string: private long bufferCleanerPeriod;
focal_class.type: long
focal_class.var_name: bufferCleanerPeriod
focal_class.declarator: bufferCleanerThreshold
focal_class.modifier: private
focal_class.original_string: private float bufferCleanerThreshold;
focal_class.type: float
focal_class.var_name: bufferCleanerThreshold
focal_class.declarator: byteBufferStore
focal_class.modifier: private
focal_class.original_string: private OffHeapByteBufferStore byteBufferStore;
focal_class.type: OffHeapByteBufferStore
focal_class.var_name: byteBufferStore
focal_class.file: imcache/src/main/java/com/cetsoft/imcache/cache/builder/OffHeapCacheBuilder.java
focal_class.identifier: OffHeapCacheBuilder
focal_class.class_method_signature: OffHeapCacheBuilder.OffHeapCacheBuilder()
focal_class.full_signature: public  OffHeapCacheBuilder()
focal_class.identifier: OffHeapCacheBuilder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  OffHeapCacheBuilder()
focal_class.class_method_signature: OffHeapCacheBuilder.storage(final OffHeapByteBufferStore bufferStore)
focal_class.full_signature: public OffHeapCacheBuilder storage(final OffHeapByteBufferStore bufferStore)
focal_class.identifier: storage
focal_class.modifiers: public
focal_class.parameters: (final OffHeapByteBufferStore bufferStore)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder storage(final OffHeapByteBufferStore bufferStore)
focal_class.class_method_signature: OffHeapCacheBuilder.serializer(final Serializer<V> serializer)
focal_class.full_signature: @SuppressWarnings("unchecked") public OffHeapCacheBuilder serializer(final Serializer<V> serializer)
focal_class.identifier: serializer
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final Serializer<V> serializer)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder serializer(final Serializer<V> serializer)
focal_class.class_method_signature: OffHeapCacheBuilder.cacheLoader(final CacheLoader<K, V> cacheLoader)
focal_class.full_signature: @SuppressWarnings("unchecked") public OffHeapCacheBuilder cacheLoader(final CacheLoader<K, V> cacheLoader)
focal_class.identifier: cacheLoader
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final CacheLoader<K, V> cacheLoader)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder cacheLoader(final CacheLoader<K, V> cacheLoader)
focal_class.class_method_signature: OffHeapCacheBuilder.name(final String name)
focal_class.full_signature: public OffHeapCacheBuilder name(final String name)
focal_class.identifier: name
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder name(final String name)
focal_class.class_method_signature: OffHeapCacheBuilder.evictionListener(
        final EvictionListener<K, V> evictionListener)
focal_class.full_signature: @SuppressWarnings("unchecked") public OffHeapCacheBuilder evictionListener(
        final EvictionListener<K, V> evictionListener)
focal_class.identifier: evictionListener
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (
        final EvictionListener<K, V> evictionListener)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder evictionListener(
        final EvictionListener<K, V> evictionListener)
focal_class.class_method_signature: OffHeapCacheBuilder.indexHandler(final IndexHandler<K, V> indexHandler)
focal_class.full_signature: @SuppressWarnings("unchecked") public OffHeapCacheBuilder indexHandler(final IndexHandler<K, V> indexHandler)
focal_class.identifier: indexHandler
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final IndexHandler<K, V> indexHandler)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder indexHandler(final IndexHandler<K, V> indexHandler)
focal_class.class_method_signature: OffHeapCacheBuilder.concurrencyLevel(final int concurrencyLevel)
focal_class.full_signature: public OffHeapCacheBuilder concurrencyLevel(final int concurrencyLevel)
focal_class.identifier: concurrencyLevel
focal_class.modifiers: public
focal_class.parameters: (final int concurrencyLevel)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder concurrencyLevel(final int concurrencyLevel)
focal_class.class_method_signature: OffHeapCacheBuilder.evictionPeriod(final long evictionPeriod)
focal_class.full_signature: public OffHeapCacheBuilder evictionPeriod(final long evictionPeriod)
focal_class.identifier: evictionPeriod
focal_class.modifiers: public
focal_class.parameters: (final long evictionPeriod)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder evictionPeriod(final long evictionPeriod)
focal_class.class_method_signature: OffHeapCacheBuilder.bufferCleanerPeriod(final long bufferCleanerPeriod)
focal_class.full_signature: public OffHeapCacheBuilder bufferCleanerPeriod(final long bufferCleanerPeriod)
focal_class.identifier: bufferCleanerPeriod
focal_class.modifiers: public
focal_class.parameters: (final long bufferCleanerPeriod)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder bufferCleanerPeriod(final long bufferCleanerPeriod)
focal_class.class_method_signature: OffHeapCacheBuilder.bufferCleanerThreshold(float bufferCleanerThreshold)
focal_class.full_signature: public OffHeapCacheBuilder bufferCleanerThreshold(float bufferCleanerThreshold)
focal_class.identifier: bufferCleanerThreshold
focal_class.modifiers: public
focal_class.parameters: (float bufferCleanerThreshold)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder bufferCleanerThreshold(float bufferCleanerThreshold)
focal_class.class_method_signature: OffHeapCacheBuilder.addIndex(final String attributeName,
        final IndexType indexType)
focal_class.full_signature: public synchronized OffHeapCacheBuilder addIndex(final String attributeName,
        final IndexType indexType)
focal_class.identifier: addIndex
focal_class.modifiers: public synchronized
focal_class.parameters: (final String attributeName,
        final IndexType indexType)
focal_class.return: OffHeapCacheBuilder
focal_class.signature: OffHeapCacheBuilder addIndex(final String attributeName,
        final IndexType indexType)
focal_class.class_method_signature: OffHeapCacheBuilder.build()
focal_class.full_signature: @SuppressWarnings("unchecked") public OffHeapCache<K, V> build()
focal_class.identifier: build
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: OffHeapCache<K, V>
focal_class.signature: OffHeapCache<K, V> build()
focal_class.class_method_signature: OffHeapCacheBuilder.build(final String name)
focal_class.full_signature: @SuppressWarnings("unchecked") public OffHeapCache<K, V> build(final String name)
focal_class.identifier: build
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (final String name)
focal_class.return: OffHeapCache<K, V>
focal_class.signature: OffHeapCache<K, V> build(final String name)
focal_class.superclass: extends BaseCacheBuilder
focal_method.body: @SuppressWarnings("unchecked")
    public <K, V> OffHeapCache<K, V> build() {
      if (this.byteBufferStore == null) {
        throw new NecessaryArgumentException("ByteBufferStore must be set!");
      }
      return new OffHeapCache<>(name, (CacheLoader<K, V>) cacheLoader,
          (EvictionListener<K, V>) evictionListener,
          (IndexHandler<K, V>) indexHandler, byteBufferStore, (Serializer<V>) serializer,
          bufferCleanerPeriod,
          bufferCleanerThreshold, concurrencyLevel, evictionPeriod);
    }
focal_method.class_method_signature: OffHeapCacheBuilder.build()
focal_method.full_signature: @SuppressWarnings("unchecked") public OffHeapCache<K, V> build()
focal_method.identifier: build
focal_method.modifiers: @SuppressWarnings("unchecked") public
focal_method.parameters: ()
focal_method.return: OffHeapCache<K, V>
focal_method.signature: OffHeapCache<K, V> build()