com.liferay.portal.fabric.netty.repository
Class NettyRepository
java.lang.Object
com.liferay.portal.fabric.netty.repository.NettyRepository
- All Implemented Interfaces:
- Repository
public class NettyRepository
- extends Object
- implements Repository
|
Constructor Summary |
NettyRepository(java.nio.file.Path repositoryPath,
io.netty.channel.Channel channel,
io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup,
long getFileTimeout)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
asyncBroker
protected final AsyncBroker<java.nio.file.Path,FileResponse> asyncBroker
channel
protected final io.netty.channel.Channel channel
getFileTimeout
protected final long getFileTimeout
pathMap
protected final Map<java.nio.file.Path,java.nio.file.Path> pathMap
repositoryPath
protected final java.nio.file.Path repositoryPath
NettyRepository
public NettyRepository(java.nio.file.Path repositoryPath,
io.netty.channel.Channel channel,
io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup,
long getFileTimeout)
dispose
public void dispose(boolean delete)
- Specified by:
dispose in interface Repository
getFile
public NoticeableFuture<java.nio.file.Path> getFile(java.nio.file.Path remoteFilePath,
java.nio.file.Path localFilePath,
boolean deleteAfterFetch)
- Specified by:
getFile in interface Repository
getFiles
public NoticeableFuture<Map<java.nio.file.Path,java.nio.file.Path>> getFiles(Map<java.nio.file.Path,java.nio.file.Path> pathMap,
boolean deleteAfterFetch)
- Specified by:
getFiles in interface Repository
getRepositoryPath
public java.nio.file.Path getRepositoryPath()
- Specified by:
getRepositoryPath in interface Repository
getLastModifiedTime
protected static long getLastModifiedTime(java.nio.file.Path path)
getFile
protected NoticeableFuture<java.nio.file.Path> getFile(java.nio.file.Path remoteFilePath,
java.nio.file.Path localFilePath,
boolean deleteAfterFetch,
boolean populateCache)