Klasse ReconciliationService

java.lang.Object
de.delinkedde.areashopreborn.application.ReconciliationService

public final class ReconciliationService extends Object
Compares authoritative estate records with their WorldGuard protection representation.
  • Konstruktordetails

    • ReconciliationService

      public ReconciliationService(Database database, EstateRepository repository, WorldGuardGateway worldGuard, ThreadBridge threads)
      Creates the reconciliation service.
      Parameter:
      database - asynchronous database executor
      repository - estate repository
      worldGuard - WorldGuard adapter
      threads - server-thread bridge
    • ReconciliationService

      public ReconciliationService(Database database, EstateRepository repository, WorldGuardGateway worldGuard, ThreadBridge threads, int batchSize, int maximumReportDetails)
      Creates a bounded reconciliation service.
      Parameter:
      database - asynchronous database executor
      repository - estate repository
      worldGuard - WorldGuard adapter
      threads - server-thread bridge
      batchSize - maximum regions loaded per SQLite page
      maximumReportDetails - maximum findings retained in memory
  • Methodendetails

    • reconcile

      public CompletableFuture<ReconcileReport> reconcile(String target, boolean fix)
      Checks one region or all managed regions and optionally repairs safe differences.

      Missing regions, wrong priorities, leftover WorldGuard parents, and access domains can be repaired because none of them changes the protected volume. A geometry mismatch is only reported: replacing a shape could silently hand over or remove protected land.

      Parameter:
      target - region name, protection identifier, or all
      fix - whether safe repairs should be applied
      Gibt zurück:
      future containing the consistency report