@FunctionalInterface public interface StorageWriteService
| Modifier and Type | Method and Description |
|---|---|
default Optional<Integer> |
flushChunkSize(AbsoluteLocation location)
For some storages that cache data before writing it (i.e.
|
OutputStream |
write(WithCallback<AbsoluteLocation,? extends ResourceWriteCallback> locationWithCallback) |
OutputStream write(WithCallback<AbsoluteLocation,? extends ResourceWriteCallback> locationWithCallback)
locationWithCallback - absolute bucket path with credentials (if necessary) plus callbacks to be executed
when file is written, i.e. notify callee that we assigned some file versiondefault Optional<Integer> flushChunkSize(AbsoluteLocation location)
S3StorageService) this should indicate
buffer size, so that callers can optimize some parts of their logic.location - resource to check for buffer size-1 if undefinedCopyright © 2020. All rights reserved.