class OffHeapCacheBuilder extends BaseCacheBuilder {

  @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);
  }

  public  OffHeapCacheBuilder();

}