接口的使用
java.util.concurrent.Flow.Publisher
使用 Flow.Publisher 的包
-
Flow.Publisher 在 java.net.http 中的用法
java.net.http 中 Flow.Publisher 的子接口修饰符和类型接口描述static interfaceBodyPublisher将高级 Java 对象转换为适合作为请求主体发送的字节缓冲区流。返回类型中包含 Flow.Publisher 类型参数的 java.net.http 中的方法修饰符和类型方法描述static HttpResponse.BodyHandler<Flow.Publisher<List<ByteBuffer>>>HttpResponse.BodyHandlers.ofPublisher()返回一个BodyHandler<Publisher<List<ByteBuffer>>>,它创建一个从BodySubscribers.ofPublisher()获得的BodySubscriber<Publisher<List<ByteBuffer>>>。HttpResponse.BodySubscribers.ofPublisher()返回一个响应订阅者,它通过Publisher<List<ByteBuffer>>发布响应主体。java.net.http 中的方法,参数类型为 Flow.Publisher修饰符和类型方法描述static HttpRequest.BodyPublisherHttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher) 返回一个请求主体发布者,其主体是从给定的Flow.Publisher中检索到的。static HttpRequest.BodyPublisherHttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength) 返回一个请求主体发布者,其主体是从给定的Flow.Publisher中检索到的。 -
Flow.Publisher 在 java.util.concurrent 中的用法