Module methanol
Class TimeoutBodySubscriber<T>
- java.lang.Object
-
- com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<T>
-
- com.github.mizosoft.methanol.internal.flow.SerializedForwardingSubscriber<T>
-
- com.github.mizosoft.methanol.internal.flow.TimeoutSubscriber<java.util.List<java.nio.ByteBuffer>,java.net.http.HttpResponse.BodySubscriber<T>>
-
- com.github.mizosoft.methanol.internal.extensions.TimeoutBodySubscriber<T>
-
- All Implemented Interfaces:
java.net.http.HttpResponse.BodySubscriber<T>,java.util.concurrent.Flow.Subscriber<java.util.List<java.nio.ByteBuffer>>
public final class TimeoutBodySubscriber<T> extends TimeoutSubscriber<java.util.List<java.nio.ByteBuffer>,java.net.http.HttpResponse.BodySubscriber<T>> implements java.net.http.HttpResponse.BodySubscriber<T>
-
-
Field Summary
-
Fields inherited from class com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber
upstream
-
-
Constructor Summary
Constructors Constructor Description TimeoutBodySubscriber(java.net.http.HttpResponse.BodySubscriber<T> downstream, java.time.Duration timeout, Delayer delayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<T>getBody()protected java.lang.ThrowabletimeoutError(long index, java.time.Duration timeout)-
Methods inherited from class com.github.mizosoft.methanol.internal.flow.TimeoutSubscriber
delegate, onComplete, onError, onNext, onSubscribe
-
Methods inherited from class com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber
toString
-
-
-
-
Method Detail
-
timeoutError
protected java.lang.Throwable timeoutError(long index, java.time.Duration timeout)- Specified by:
timeoutErrorin classTimeoutSubscriber<java.util.List<java.nio.ByteBuffer>,java.net.http.HttpResponse.BodySubscriber<T>>
-
-