public abstract class BaseDelegatingStorage extends Object implements StorageService
| Constructor and Description |
|---|
BaseDelegatingStorage() |
| Modifier and Type | Method and Description |
|---|---|
Stream<AbsoluteLocation<ResolvedResource>> |
list(AbsoluteLocation location)
Lists bucket contents.
|
boolean |
objectExists(AbsoluteLocation location) |
InputStream |
read(AbsoluteLocation location) |
void |
remove(AbsoluteLocation location)
Removes bucket contents.
|
protected abstract StorageService |
service(AbsoluteLocation location) |
OutputStream |
write(WithCallback<AbsoluteLocation,? extends ResourceWriteCallback> locationWithCallback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushChunkSizepublic boolean objectExists(AbsoluteLocation location)
objectExists in interface StorageCheckServicelocation - Resource location with credentials (if necessary)location existspublic Stream<AbsoluteLocation<ResolvedResource>> list(AbsoluteLocation location)
StorageListServicelist in interface StorageListServicelocation - absolute bucket path with credentials (if necessary) where to list datapublic InputStream read(AbsoluteLocation location)
read in interface StorageReadServicelocation - absolute bucket path with credentials (if necessary)public void remove(AbsoluteLocation location)
StorageRemoveServiceremove in interface StorageRemoveServicelocation - absolute bucket path, with credentials (if necessary), which should be removedpublic OutputStream write(WithCallback<AbsoluteLocation,? extends ResourceWriteCallback> locationWithCallback)
write in interface StorageWriteServicelocationWithCallback - 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 versionprotected abstract StorageService service(AbsoluteLocation location)
Copyright © 2020. All rights reserved.