HivePersistenceConfig.serverDefaults constructor

HivePersistenceConfig.serverDefaults({
  1. required String storagePath,
  2. required String commitLogPath,
  3. required String accessLogPath,
  4. required String notificationStoragePath,
  5. String? backendMarkerPath,
})

Convenience constructor for atSecondary servers: opts into all optional capabilities (access log, notification keystore).

Implementation

factory HivePersistenceConfig.serverDefaults({
  required String storagePath,
  required String commitLogPath,
  required String accessLogPath,
  required String notificationStoragePath,
  String? backendMarkerPath,
}) =>
    HivePersistenceConfig(
      storagePath: storagePath,
      commitLogPath: commitLogPath,
      accessLogPath: accessLogPath,
      notificationStoragePath: notificationStoragePath,
      backendMarkerPath: backendMarkerPath,
      enableAccessLog: true,
      enableNotificationKeystore: true,
      enableCommitLog: true,
    );