Package com.faunadb.client.streaming
Class SnapshotEventFlowProcessor
- java.lang.Object
-
- java.util.concurrent.SubmissionPublisher<Value>
-
- com.faunadb.client.streaming.SnapshotEventFlowProcessor
-
- All Implemented Interfaces:
AutoCloseable,Flow.Processor<Value,Value>,Flow.Publisher<Value>,Flow.Subscriber<Value>
public class SnapshotEventFlowProcessor extends SubmissionPublisher<Value> implements Flow.Processor<Value,Value>
-
-
Constructor Summary
Constructors Constructor Description SnapshotEventFlowProcessor(Expr target, Function<Expr,CompletableFuture<Value>> loadDocument)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable throwable)voidonNext(Value event)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
-
SnapshotEventFlowProcessor
public SnapshotEventFlowProcessor(Expr target, Function<Expr,CompletableFuture<Value>> loadDocument)
-
-
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<Value>
-
onNext
public void onNext(Value event)
- Specified by:
onNextin interfaceFlow.Subscriber<Value>
-
onError
public void onError(Throwable throwable)
- Specified by:
onErrorin interfaceFlow.Subscriber<Value>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceFlow.Subscriber<Value>
-
-