Class ForwardingBodySubscriber<T>
java.lang.Object
com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<List<ByteBuffer>>
com.github.mizosoft.methanol.internal.extensions.ForwardingBodySubscriber<T>
- All Implemented Interfaces:
HttpResponse.BodySubscriber<T>, Flow.Subscriber<List<ByteBuffer>>
public class ForwardingBodySubscriber<T>
extends ForwardingSubscriber<List<ByteBuffer>>
implements HttpResponse.BodySubscriber<T>
-
Field Summary
Fields inherited from class ForwardingSubscriber
upstream -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForwardingBodySubscriber(HttpResponse.BodySubscriber<T> delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected final HttpResponse.BodySubscriber<T> delegate()Returns the downstream to which signals are forwarded.getBody()Methods inherited from class ForwardingSubscriber
onComplete, onError, onNext, onSubscribe, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Flow.Subscriber
onComplete, onError, onNext, onSubscribe
-
Constructor Details
-
ForwardingBodySubscriber
-
-
Method Details
-
delegate
Description copied from class:ForwardingSubscriberReturns the downstream to which signals are forwarded.- Specified by:
delegatein classForwardingSubscriber<List<ByteBuffer>>
-
getBody
- Specified by:
getBodyin interfaceHttpResponse.BodySubscriber<T>
-