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 voidonComplete()voidonError(Throwable t)voidonNext(ByteBuffer byteBuffer)voidonSubscribe(org.reactivestreams.Subscription s) 
 - 
 
- 
- 
Constructor Detail
- 
SimpleSubscriber
public SimpleSubscriber(Consumer<ByteBuffer> consumer)
 
 - 
 
- 
Method Detail
- 
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
 onSubscribein interfaceorg.reactivestreams.Subscriber<ByteBuffer>
 
- 
onNext
public void onNext(ByteBuffer byteBuffer)
- Specified by:
 onNextin interfaceorg.reactivestreams.Subscriber<ByteBuffer>
 
- 
onError
public void onError(Throwable t)
- Specified by:
 onErrorin interfaceorg.reactivestreams.Subscriber<ByteBuffer>
 
- 
onComplete
public void onComplete()
- Specified by:
 onCompletein interfaceorg.reactivestreams.Subscriber<ByteBuffer>
 
 - 
 
 -