Package dev.turboism.sdk.cubism.backup
Interface BackupSyncTarget
- All Known Implementing Classes:
BackupSyncTarget.Noop
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 ClassesModifier and TypeInterfaceDescriptionstatic enumSingleton sync target that accepts the artifact list and does nothing with it. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupSyncTargetnoop()Default no-op target; useful for tests and opt-out configurations.voidsync(List<BackupArtifactHandle> newArtifacts) Uploads or otherwise syncs the newly produced backup artifacts.
-
Method Details
-
sync
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
Default no-op target; useful for tests and opt-out configurations.
-