public interface ZeroCopyHttpOutputMessage extends ReactiveHttpOutputMessage
ReactiveOutputMessage that has support for "zero-copy"
file transfers.| Modifier and Type | Method and Description |
|---|---|
default <any> |
writeWith(java.io.File file,
long position,
long count)
Use the given
File to write the body of the message to the underlying
HTTP layer. |
<any> |
writeWith(java.nio.file.Path file,
long position,
long count)
Use the given
Path to write the body of the message to the underlying
HTTP layer. |
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWithgetHeadersdefault <any> writeWith(java.io.File file,
long position,
long count)
File to write the body of the message to the underlying
HTTP layer.file - the file to transferposition - the position within the file from which the transfer is to begincount - the number of bytes to be transferred<any> writeWith(java.nio.file.Path file,
long position,
long count)
Path to write the body of the message to the underlying
HTTP layer.file - the file to transferposition - the position within the file from which the transfer is to begincount - the number of bytes to be transferred