Package dev.turboism.sdk.cubism.backup
Interface BackupSyncTarget
- All Known Implementing Classes:
BackupSyncTarget.Noop
public interface BackupSyncTarget
Framework-side sync capability hook: invoked with the new backup artifacts
after a
EditorAutoBackupService.backupNow() completion.
Implementations must upload/copy the files to their target. 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupSyncTargetnoop()Default no-op target; useful for tests and opt-out configurations.voidUploads or otherwise syncs the newly produced backup files.
-
Method Details
-
sync
Uploads or otherwise syncs the newly produced backup files.- Parameters:
newBackupFiles- non-empty, size-greater-than-zero backup artifacts produced by the completed backup run
-
noop
Default no-op target; useful for tests and opt-out configurations.
-