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

me.desair.tus.server.upload.UploadLock Maven / Gradle / Ivy

package me.desair.tus.server.upload;

import java.io.IOException;

/**
 * Interface that represents a lock on an upload
 */
public interface UploadLock extends AutoCloseable {

    /**
     * Get the upload URI of the upload that is locked by this lock
     * @return The URI of the locked upload
     */
    String getUploadUri();

    /**
     * Method to release the lock on an upload when done processing it. It's possible that this method is
     * called multiple times within the same request
     */
    void release();

    @Override
    void close() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy