Interface BackupSyncTarget

All Known Implementing Classes:
BackupSyncTarget.Noop

@CubismEditor public interface BackupSyncTarget
Framework-side sync capability hook: invoked with the new backup artifacts after a EditorAutoBackupService.backupNow() completion.

Implementations receive opaque BackupArtifactHandles — never host paths — and upload or copy the artifact bytes through BackupArtifactHandle.openStream(). A throwing implementation is isolated: the backup result is never corrupted by a target failure (the runtime records the failure and continues).

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Singleton sync target that accepts the artifact list and does nothing with it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Default no-op target; useful for tests and opt-out configurations.
    void
    Uploads or otherwise syncs the newly produced backup artifacts.
  • Method Details

    • sync

      void sync(List<BackupArtifactHandle> newArtifacts)
      Uploads or otherwise syncs the newly produced backup artifacts.
      Parameters:
      newArtifacts - non-empty, size-greater-than-zero artifact handles produced by the completed backup run
    • noop

      static BackupSyncTarget noop()
      Default no-op target; useful for tests and opt-out configurations.