Module methanol
Class ByteBufferBodyPublisher
- java.lang.Object
-
- com.github.mizosoft.methanol.internal.extensions.ByteBufferBodyPublisher
-
- All Implemented Interfaces:
java.net.http.HttpRequest.BodyPublisher,java.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>
public final class ByteBufferBodyPublisher extends java.lang.Object implements java.net.http.HttpRequest.BodyPublisher
-
-
Constructor Summary
Constructors Constructor Description ByteBufferBodyPublisher(java.nio.ByteBuffer buffer)ByteBufferBodyPublisher(java.nio.ByteBuffer buffer, int downstreamBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcontentLength()voidsubscribe(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)
-
-
-
Method Detail
-
subscribe
public void subscribe(java.util.concurrent.Flow.Subscriber<? super java.nio.ByteBuffer> subscriber)
- Specified by:
subscribein interfacejava.util.concurrent.Flow.Publisher<java.nio.ByteBuffer>
-
contentLength
public long contentLength()
- Specified by:
contentLengthin interfacejava.net.http.HttpRequest.BodyPublisher
-
-