All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xtdb.multipart.IMultipartUpload.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0-beta4
Show newest version
package xtdb.multipart

import java.nio.ByteBuffer
import java.util.concurrent.CompletableFuture

interface IMultipartUpload {
    /**
     * Asynchronously uploads a part to the multipart request and adds it to the internal list of completed parts.
     */
    fun uploadPart(buf: ByteBuffer): CompletableFuture<*>

    /**
     * Asynchronously completes the multipart request.
     */
    fun complete(): CompletableFuture<*>

    /**
     * Asynchronously cancels the multipart request, useful for cleaning up any parts of the multipart upload in case of an error.
     */
    fun abort(): CompletableFuture<*>
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy