@ThreadSafe public static final class StateChangeUploadScheduler.UploadTask extends Object
StateChangeUploadScheduler
.Constructor and Description |
---|
UploadTask(Collection<StateChangeSet> changeSets,
java.util.function.Consumer<List<UploadResult>> successCallback,
java.util.function.BiConsumer<List<SequenceNumber>,Throwable> failureCallback) |
Modifier and Type | Method and Description |
---|---|
void |
complete(List<UploadResult> results) |
void |
fail(Throwable error) |
Collection<StateChangeSet> |
getChangeSets() |
long |
getSize() |
boolean |
isFinished() |
String |
toString() |
public UploadTask(Collection<StateChangeSet> changeSets, java.util.function.Consumer<List<UploadResult>> successCallback, java.util.function.BiConsumer<List<SequenceNumber>,Throwable> failureCallback)
public void complete(List<UploadResult> results)
public void fail(Throwable error)
public long getSize()
public Collection<StateChangeSet> getChangeSets()
public boolean isFinished()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.