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 SummaryConstructors Constructor Description SimpleSubscriber(Consumer<ByteBuffer> consumer)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable t)voidonNext(ByteBuffer byteBuffer)voidonSubscribe(org.reactivestreams.Subscription s)
 
- 
- 
- 
Constructor Detail- 
SimpleSubscriberpublic SimpleSubscriber(Consumer<ByteBuffer> consumer) 
 
- 
 - 
Method Detail- 
onSubscribepublic void onSubscribe(org.reactivestreams.Subscription s) - Specified by:
- onSubscribein interface- org.reactivestreams.Subscriber<ByteBuffer>
 
 - 
onNextpublic void onNext(ByteBuffer byteBuffer) - Specified by:
- onNextin interface- org.reactivestreams.Subscriber<ByteBuffer>
 
 - 
onErrorpublic void onError(Throwable t) - Specified by:
- onErrorin interface- org.reactivestreams.Subscriber<ByteBuffer>
 
 - 
onCompletepublic void onComplete() - Specified by:
- onCompletein interface- org.reactivestreams.Subscriber<ByteBuffer>
 
 
- 
 
-