Class SimpleSubscriber
- java.lang.Object
-
- software.amazon.awssdk.http.async.SimpleSubscriber
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<ByteBuffer>
public class SimpleSubscriber extends Object implements org.reactivestreams.Subscriber<ByteBuffer>
Simple subscriber that does no backpressure and doesn't care about errors or completion.
-
-
Constructor Summary
Constructors Constructor Description SimpleSubscriber(Consumer<ByteBuffer> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
void
onError(Throwable t)
void
onNext(ByteBuffer byteBuffer)
void
onSubscribe(org.reactivestreams.Subscription s)
-
-
-
Constructor Detail
-
SimpleSubscriber
public SimpleSubscriber(Consumer<ByteBuffer> consumer)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onNext
public void onNext(ByteBuffer byteBuffer)
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onError
public void onError(Throwable t)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<ByteBuffer>
-
-