Package com.faunadb.client.streaming
Class BodyValueFlowProcessor
- java.lang.Object
-
- java.util.concurrent.SubmissionPublisher<Value>
-
- com.faunadb.client.streaming.BodyValueFlowProcessor
-
- All Implemented Interfaces:
AutoCloseable,Flow.Processor<List<ByteBuffer>,Value>,Flow.Publisher<Value>,Flow.Subscriber<List<ByteBuffer>>
public class BodyValueFlowProcessor extends SubmissionPublisher<Value> implements Flow.Processor<List<ByteBuffer>,Value>
-
-
Constructor Summary
Constructors Constructor Description BodyValueFlowProcessor(com.fasterxml.jackson.databind.ObjectMapper json, Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable throwable)voidonNext(List<ByteBuffer> items)voidonSubscribe(Flow.Subscription subscription)voidsubscribe(Flow.Subscriber<? super Value> subscriber)-
Methods inherited from class java.util.concurrent.SubmissionPublisher
close, closeExceptionally, consume, estimateMaximumLag, estimateMinimumDemand, getClosedException, getExecutor, getMaxBufferCapacity, getNumberOfSubscribers, getSubscribers, hasSubscribers, isClosed, isSubscribed, offer, offer, submit
-
-
-
-
Constructor Detail
-
BodyValueFlowProcessor
public BodyValueFlowProcessor(com.fasterxml.jackson.databind.ObjectMapper json, Connection connection)
-
-
Method Detail
-
subscribe
public void subscribe(Flow.Subscriber<? super Value> subscriber)
- Specified by:
subscribein interfaceFlow.Publisher<Value>- Overrides:
subscribein classSubmissionPublisher<Value>
-
onSubscribe
public void onSubscribe(Flow.Subscription subscription)
- Specified by:
onSubscribein interfaceFlow.Subscriber<List<ByteBuffer>>
-
onNext
public void onNext(List<ByteBuffer> items)
- Specified by:
onNextin interfaceFlow.Subscriber<List<ByteBuffer>>
-
onError
public void onError(Throwable throwable)
- Specified by:
onErrorin interfaceFlow.Subscriber<List<ByteBuffer>>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceFlow.Subscriber<List<ByteBuffer>>
-
-