public interface ZeroCopyHttpOutputMessage extends ReactiveHttpOutputMessage
ReactiveOutputMessage
that has support for "zero-copy"
file transfers.Modifier and Type | Method and Description |
---|---|
default reactor.core.publisher.Mono<java.lang.Void> |
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. |
reactor.core.publisher.Mono<java.lang.Void> |
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, writeWith
getHeaders
default reactor.core.publisher.Mono<java.lang.Void> 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 transferredreactor.core.publisher.Mono<java.lang.Void> 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