package org.terracotta.offheapstore.storage;
import org.terracotta.offheapstore.paging.PageSource;
import org.terracotta.offheapstore.storage.portability.Portability;
import org.terracotta.offheapstore.storage.portability.StringPortability;
import org.terracotta.offheapstore.util.Factory;
public class StringStorageEngine extends OffHeapBufferStorageEngine<String, String> {
public static Factory<StringStorageEngine> createFactory(final PointerSize width, final PageSource source, final int pageSize) {
return () -> new StringStorageEngine(width, source, pageSize);
}
private static final Portability<String> PORTABILITY = StringPortability.INSTANCE;
public StringStorageEngine(PointerSize width, PageSource source, int pageSize) {
super(width, source, pageSize, PORTABILITY, PORTABILITY);
}
}