接口 ZeroCopyHttpOutputMessage
- 所有超级接口:
HttpMessage
,ReactiveHttpOutputMessage
public interface ZeroCopyHttpOutputMessage extends ReactiveHttpOutputMessage
Sub-interface ofReactiveOutputMessage
that has support for "zero-copy" file transfers.- 从以下版本开始:
- 5.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
- 另请参阅:
- Zero-copy
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default reactor.core.publisher.Mono<Void>
writeWith(File file, long position, long count)
Use the givenFile
to write the body of the message to the underlying HTTP layer.reactor.core.publisher.Mono<Void>
writeWith(Path file, long position, long count)
Use the givenPath
to write the body of the message to the underlying HTTP layer.从接口继承的方法 org.springframework.http.HttpMessage
getHeaders
从接口继承的方法 org.springframework.http.ReactiveHttpOutputMessage
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
方法详细资料
writeWith
default reactor.core.publisher.Mono<Void> writeWith(File file, long position, long count)
Use the givenFile
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- 返回:
- a publisher that indicates completion or error.
writeWith
reactor.core.publisher.Mono<Void> writeWith(Path file, long position, long count)
Use the givenPath
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- 返回:
- a publisher that indicates completion or error.
- 从以下版本开始:
- 5.1