001
014
015 package com.liferay.portal.fabric.repository;
016
017 import com.liferay.portal.fabric.netty.fileserver.FileResponse;
018 import com.liferay.portal.kernel.concurrent.AsyncBroker;
019 import com.liferay.portal.kernel.concurrent.NoticeableFuture;
020
021 import java.nio.file.Path;
022
023 import java.util.Map;
024
025
028 public interface Repository<T> {
029
030 public void dispose(boolean delete);
031
032 public AsyncBroker<Path, FileResponse> getAsyncBroker();
033
034 public NoticeableFuture<Path> getFile(
035 T t, Path remoteFilePath, Path localFilePath, boolean deleteAfterFetch);
036
037 public NoticeableFuture<Map<Path, Path>> getFiles(
038 T t, Map<Path, Path> pathMap, boolean deleteAfterFetch);
039
040 public Path getRepositoryPath();
041
042 }