Interface OciObjectStorage
public interface OciObjectStorage
Blocking OCI ObjectStorage API.
All methods block the current thread. This implementation is not suitable for reactive programming.
Use
OciObjectStorageRx in reactive code.-
Method Summary
Modifier and TypeMethodDescriptionstatic OciObjectStoragecreate(OciObjectStorageRx reactive) Create a blocking object storage integration from its reactive counterpart.deleteObject(DeleteObject.Request request) Deletes an object.getBucket(GetBucket.Request request) Gets the metadata of a bucket.getObject(GetObject.Request request) Gets the metadata and body of an object.putObject(PutObject.Request request, ReadableByteChannel channel) Creates a new object or overwrites an existing object with the same name.renameObject(RenameObject.Request request) Rename an object in the given Object Storage namespace.
-
Method Details
-
create
Create a blocking object storage integration from its reactive counterpart. When running within an injection capable environment (such as CDI), instances of this class can be injected.- Parameters:
reactive- reactive OCI object storage- Returns:
- blocking OCI object storage
-
getObject
Gets the metadata and body of an object.- Parameters:
request- get object request- Returns:
- future with response or error
-
putObject
Creates a new object or overwrites an existing object with the same name. The maximum object size allowed by PutObject is 50 GiB.- Parameters:
request- put object requestchannel- to read data from- Returns:
- future with response or error
-
deleteObject
Deletes an object.- Parameters:
request- delete object request- Returns:
- future with response or error
-
renameObject
Rename an object in the given Object Storage namespace. See Object Names.- Parameters:
request- rename object request- Returns:
- future with response or error
-
getBucket
Gets the metadata of a bucket.- Parameters:
request- get bucket request- Returns:
- future with response or error
-