@Internal public interface StateChangeUploadScheduler extends AutoCloseable
upload tasks
on a StateChangeUploader
. In the simplest form,
directly calls StateChangeUploader.upload(Collection)
. Other implementations might batch
the tasks for efficiency.Modifier and Type | Interface and Description |
---|---|
static class |
StateChangeUploadScheduler.UploadTask
Upload Task for
StateChangeUploadScheduler . |
Modifier and Type | Method and Description |
---|---|
static StateChangeUploadScheduler |
directScheduler(StateChangeUploader uploader) |
static StateChangeUploadScheduler |
fromConfig(JobID jobID,
ReadableConfig config,
ChangelogStorageMetricGroup metricGroup,
TaskChangelogRegistry changelogRegistry,
LocalRecoveryConfig localRecoveryConfig) |
default AvailabilityProvider |
getAvailabilityProvider() |
void |
upload(StateChangeUploadScheduler.UploadTask uploadTask)
|
close
void upload(StateChangeUploadScheduler.UploadTask uploadTask) throws IOException
IOException
static StateChangeUploadScheduler directScheduler(StateChangeUploader uploader)
static StateChangeUploadScheduler fromConfig(JobID jobID, ReadableConfig config, ChangelogStorageMetricGroup metricGroup, TaskChangelogRegistry changelogRegistry, LocalRecoveryConfig localRecoveryConfig) throws IOException
IOException
default AvailabilityProvider getAvailabilityProvider()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.