Uses of Interface
java.util.concurrent.Flow.Publisher
Package
Description
HTTP Client and WebSocket APIs
Utility classes commonly useful in concurrent programming.
-
Uses of Flow.Publisher in java.net.http
Modifier and TypeInterfaceDescriptionstatic interface
ABodyPublisher
converts high-level Java objects into a flow of byte buffers suitable for sending as a request body.Modifier and TypeMethodDescriptionstatic HttpResponse.BodyHandler
<Flow.Publisher<List<ByteBuffer>>> HttpResponse.BodyHandlers.ofPublisher()
Returns aBodyHandler<Publisher<List<ByteBuffer>>>
that creates aBodySubscriber
<Publisher<List<ByteBuffer>>>
obtained fromBodySubscribers.ofPublisher()
.HttpResponse.BodySubscribers.ofPublisher()
Returns a response subscriber which publishes the response body through aPublisher<List<ByteBuffer>>
.Modifier and TypeMethodDescriptionstatic HttpRequest.BodyPublisher
HttpRequest.BodyPublishers.fromPublisher
(Flow.Publisher<? extends ByteBuffer> publisher) Returns a request body publisher whose body is retrieved from the givenFlow.Publisher
.static HttpRequest.BodyPublisher
HttpRequest.BodyPublishers.fromPublisher
(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength) Returns a request body publisher whose body is retrieved from the givenFlow.Publisher
. -
Uses of Flow.Publisher in java.util.concurrent
Modifier and TypeInterfaceDescriptionstatic interface
Flow.Processor<T,
R> A component that acts as both a Subscriber and Publisher.Modifier and TypeClassDescriptionclass
AFlow.Publisher
that asynchronously issues submitted (non-null) items to current subscribers until it is closed.