public static BytesStore allocateLazy(long sizeInBytes, ObjectSerializer objectSerializer) { return new DirectStore(objectSerializer, sizeInBytes, false); }
public static BytesStore allocateLazy(long sizeInBytes, ObjectSerializer objectSerializer) { return new DirectStore(objectSerializer, sizeInBytes, false); }
@NotNull private static DirectBitSet createModIterBitSet() { return ATSDirectBitSet.wrap(new DirectStore(null, DIRTY_WORD_COUNT * 8, true).bytes()); }
public DailyRollingChronicle(String filename, DailyRollingConfig config) throws IOException { this.config = config; this.file = new File(filename); file.mkdirs(); if (!file.isDirectory()) throw new IOException("Failed to create directory " + file); master = new MasterIndexFile(new File(file, "master")); bytes = new DirectStore(config.getBytesMarshallerFactory(), config.getMaxEntrySize(), false).bytes(); SimpleDateFormat dateFormat = new SimpleDateFormat(config.getFileFormat()); dateFormat.setTimeZone(config.getTimeZone()); String currentFilename = dateFormat.format(new Date()); int index = master.append(currentFilename); filesList = new CopyOnWriteArrayList<DRFiles>(); while (filesList.size() < index) filesList.add(null); DRFiles indexFiles = new DRFiles(file, currentFilename); filesList.add(indexFiles); // worker = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory(file.getName() + "-worker", true)); }
@NotNull public static DirectStore allocateLazy(long size) { return new DirectStore(new VanillaBytesMarshallerFactory(), size, false); }
@NotNull public static DirectStore allocate(long size) { return new DirectStore(new VanillaBytesMarshallerFactory(), size); }
@NotNull public static DirectStore allocate(long size) { return new DirectStore(new VanillaBytesMarshallerFactory(), size); }
@NotNull public static DirectStore allocateLazy(long size) { return new DirectStore(new VanillaBytesMarshallerFactory(), size, false); }