DiskRegion createDiskRegion(DiskStoreImpl dsi, String name, boolean isBucket,
boolean isPersistBackup, boolean overflowEnabled, boolean isSynchronous,
DiskRegionStats stats, CancelCriterion cancel, DiskExceptionHandler exceptionHandler,
RegionAttributes ra, EnumSet<DiskRegionFlag> flags, String partitionName,
int startingBucketId, Compressor compressor, boolean offHeap) {
lock(true);
try {
DiskRegion result = new DiskRegion(dsi, name, isBucket, isPersistBackup, overflowEnabled,
isSynchronous, stats, cancel, exceptionHandler, ra, flags, partitionName,
startingBucketId, compressor == null ? null : compressor.getClass().getName(), offHeap);
dsi.addDiskRegion(result);
return result;
} finally {
unlock(true);
}
}