インタフェースjava.util.concurrent.Flow.Publisherの
使用
Flow.Publisherを使用するパッケージ
パッケージ
説明
HTTPクライアントおよびWebSocket API
並行プログラミングでよく使用されるユーティリティ・クラスです。
-
java.net.httpでのFlow.Publisherの使用
java.net.httpのFlow.Publisherのサブインタフェース修飾子と型インタフェース説明static interface
BodyPublisher
は、上位レベルのJavaオブジェクトをリクエスト本文として送信するのに適したバイト・バッファのフローに変換します。型Flow.Publisherの引数を持つ型を返すjava.net.httpのメソッド修飾子と型メソッド説明static HttpResponse.BodyHandler<Flow.Publisher<List<ByteBuffer>>>
HttpResponse.BodyHandlers.ofPublisher()
BodySubscribers.ofPublisher()
から取得したBodySubscriber
<Publisher<List<ByteBuffer>>>
を作成するBodyHandler<Publisher<List<ByteBuffer>>>
を返します。HttpResponse.BodySubscribers.ofPublisher()
Publisher<List<ByteBuffer>>
を介してレスポンス本文をパブリッシュするレスポンス・サブスクライバを返します。型Flow.Publisherのパラメータを持つjava.net.httpのメソッド修飾子と型メソッド説明static HttpRequest.BodyPublisher
HttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher)
指定されたFlow.Publisher
から本文が取得されたリクエスト・ボディ・パブリッシャを返します。static HttpRequest.BodyPublisher
HttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength)
指定されたFlow.Publisher
から本文が取得されたリクエスト・ボディ・パブリッシャを返します。 -
java.util.concurrentでのFlow.Publisherの使用
java.util.concurrentのFlow.PublisherのサブインタフェースFlow.Publisherを実装しているjava.util.concurrentのクラス