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

bt.data.IDataDescriptorFactory Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package bt.data;

import bt.metainfo.Torrent;

/**
 * Factory of torrent data descriptors.
 *
 * @since 1.0
 */
public interface IDataDescriptorFactory {

    /**
     * Create a data descriptor for a given torrent
     * with the storage provided as the data back-end.
     *
     * It's up to implementations to decide,
     * whether storage units will be allocated eagerly
     * upon creation of data descriptor or delayed
     * until data access is requested.
     *
     * @return Data descriptor
     * @since 1.0
     */
    DataDescriptor createDescriptor(Torrent torrent, Storage storage);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy