@FunctionalInterface public interface BulkContentCallback
Note that there is no guarantee about the order in which the files are handed to the callback.
| Modifier and Type | Method and Description |
|---|---|
default BulkContentDisposition |
accept(BulkFile file)
For each added, modified or deleted file, this method is called once with the metadata.
|
default void |
onEnd(BulkContentSummary summary)
Called at the end.
|
void |
onFile(BulkFile file,
InputStream content)
For each file where the content was requested with
accept(com.atlassian.bitbucket.scm.bulk.BulkFile), this method is called. |
default void |
onStart(BulkContentContext context)
Called before any other methods are called.
|
@Nonnull default BulkContentDisposition accept(@Nonnull BulkFile file)
onFile(com.atlassian.bitbucket.scm.bulk.BulkFile, java.io.InputStream).file - information about the filedefault void onEnd(@Nonnull BulkContentSummary summary)
summary - provides details about the command executionvoid onFile(@Nonnull BulkFile file, @Nonnull InputStream content)
accept(com.atlassian.bitbucket.scm.bulk.BulkFile), this method is called.file - information about the filecontent - the input stream of the contents; must be consumed before method returns (it won't stay usable after)default void onStart(@Nonnull BulkContentContext context)
context - provides details about the requestCopyright © 2019 Atlassian. All rights reserved.