class VersionedOffHeapCacheBuilder extends BaseCacheBuilder {

  @SuppressWarnings("unchecked")
  public <K, V> VersionedOffHeapCache build() {
    if (this.byteBufferStore == null) {
      throw new NecessaryArgumentException("ByteBufferStore must be set!");
    }
    return new VersionedOffHeapCache<>(name, byteBufferStore,
        (Serializer<V>) serializer, (CacheLoader<K, V>) cacheLoader,
        (EvictionListener<K, V>) evictionListener, (IndexHandler<K, V>) indexHandler,
        bufferCleanerPeriod, bufferCleanerThreshold, concurrencyLevel, evictionPeriod);
  }

  public  VersionedOffHeapCacheBuilder();

}