Package kong.unirest.core.java
Class PartSubscriber
java.lang.Object
kong.unirest.core.java.PartSubscriber
- All Implemented Interfaces:
Flow.Subscriber<ByteBuffer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentLinkedQueue<ByteBuffer> private final MultipartSubscription(package private) static final ByteBufferprivate final ProgressMonitorprivate final Partprivate final Prefetcherprivate longprivate final Upstream -
Constructor Summary
ConstructorsConstructorDescriptionPartSubscriber(MultipartSubscription downstream, Part part, ProgressMonitor monitor) -
Method Summary
Modifier and TypeMethodDescription(package private) voidabortUpstream(boolean cancel) getPart()voidvoidvoidonNext(ByteBuffer item) voidonSubscribe(Flow.Subscription subscription) (package private) ByteBufferpollNext()
-
Field Details
-
END_OF_PART
-
downstream
-
part
-
monitor
-
buffers
-
upstream
-
prefetcher
-
total
private long total
-
-
Constructor Details
-
PartSubscriber
PartSubscriber(MultipartSubscription downstream, Part part, ProgressMonitor monitor)
-
-
Method Details
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<ByteBuffer>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<ByteBuffer>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<ByteBuffer>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<ByteBuffer>
-
abortUpstream
void abortUpstream(boolean cancel) -
pollNext
ByteBuffer pollNext() -
getPart
-