class Stores {

    @Deprecated // continuing to support Windows#maintainMs/segmentInterval in fallback mode
    public static SessionBytesStoreSupplier persistentSessionStore(final String name,
                                                                   final long retentionPeriodMs) {
        Objects.requireNonNull(name, "name cannot be null");
        if (retentionPeriodMs < 0) {
            throw new IllegalArgumentException("retentionPeriod cannot be negative");
        }
        return new RocksDbSessionBytesStoreSupplier(name, retentionPeriodMs);
    }

}