public interface FileChunkedStrategy<T>
NettyOutboundwhen sending a file should be done using a
ChunkedInputinstead of zero-copy (typically when SSL is used). This in turn allows to manipulate the pipeline and adapt the exact ChunkedInput used to different situation, like TCP vs HTTP.
|Modifier and Type||Method and Description|
Given the sent file as a
Once the file has been written, allows to clean the pipeline (see
Allow for preparing the pipeline (eg.
void preparePipeline(NettyContext context)
NettyContextis provided and can be used to get the
context- the context from which to obtain the channel and pipeline
ChunkedInput<T> chunkFile(java.nio.channels.FileChannel fileChannel, long offset, long length, int chunkSize)
RandomAccessFile, return a
ChunkedInput"view" of the file, eg. as a
HttpChunkedInputaround a ChunkedFile.