Class ByteBufferSubscriber
- java.lang.Object
-
- de.martinpallmann.mockbridge.jdk.api.ByteBufferSubscriber
-
- All Implemented Interfaces:
Flow.Subscriber<ByteBuffer>
public class ByteBufferSubscriber extends Object implements Flow.Subscriber<ByteBuffer>
-
-
Constructor Summary
Constructors Constructor Description ByteBufferSubscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable throwable)voidonNext(ByteBuffer item)voidonSubscribe(Flow.Subscription subscription)byte[]result()
-
-
-
Method Detail
-
result
public byte[] result()
-
onSubscribe
public void onSubscribe(Flow.Subscription subscription)
- Specified by:
onSubscribein interfaceFlow.Subscriber<ByteBuffer>
-
onNext
public void onNext(ByteBuffer item)
- Specified by:
onNextin interfaceFlow.Subscriber<ByteBuffer>
-
onError
public void onError(Throwable throwable)
- Specified by:
onErrorin interfaceFlow.Subscriber<ByteBuffer>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceFlow.Subscriber<ByteBuffer>
-
-