Package-level declarations

Types

Link copied to clipboard
class CloseStreamTask(syncManager: SyncManager, val streamDescriptor: DestinationStream.Descriptor, taskLauncher: DestinationTaskLauncher) : Task
Link copied to clipboard
@Singleton
class CloseStreamTaskFactory(syncManager: SyncManager)
Link copied to clipboard
class FailStreamTask(taskLauncher: DestinationTaskLauncher, exception: Exception, syncManager: SyncManager, stream: DestinationStream.Descriptor, shouldRunStreamLoaderClose: Boolean) : Task
Link copied to clipboard
@Singleton
class FailStreamTaskFactory(syncManager: SyncManager)
Link copied to clipboard
class FailSyncTask(taskLauncher: DestinationTaskLauncher, destinationWriter: DestinationWriter, exception: Exception, syncManager: SyncManager, checkpointManager: CheckpointManager) : Task

FailSyncTask is a task that is executed only when the destination itself fails during a sync. If the sync is failed by upstream (e.g. an incomplete stream message is received), we do not call this task. It is responsible for cleaning up resources and reporting the failure.

Link copied to clipboard
@Singleton
class FailSyncTaskFactory(syncManager: SyncManager, checkpointManager: CheckpointManager, destinationWriter: DestinationWriter)
Link copied to clipboard
@Singleton
class OpenStreamTask(destinationWriter: DestinationWriter, syncManager: SyncManager, openStreamQueue: MessageQueue<DestinationStream>) : Task

Consumes DestinationStreams from the openStreamQueue, creates/starts a StreamLoader for each, and registers it with the SyncManager.

Link copied to clipboard
class SetupTask(destination: DestinationWriter, taskLauncher: DestinationTaskLauncher) : Task

Wraps @DestinationWriter.setup and starts the open stream tasks.

Link copied to clipboard
@Singleton
class SetupTaskFactory(destination: DestinationWriter)
Link copied to clipboard
class TeardownTask(checkpointManager: CheckpointManager, syncManager: SyncManager, destination: DestinationWriter, taskLauncher: DestinationTaskLauncher) : Task

Wraps @DestinationWriter.teardown and stops the task launcher.

Link copied to clipboard
@Singleton
class TeardownTaskFactory(checkpointManager: CheckpointManager, syncManager: SyncManager, destination: DestinationWriter)