Package com.couchbase.client.core.util
Interface LatestStateSubscription.AsyncSubscriber<T>
- Enclosing class:
LatestStateSubscription<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hookOnNext
(T value, Runnable doFinally) Handles a value, typically by launching an asynchronous task.
-
Method Details
-
hookOnNext
Handles a value, typically by launching an asynchronous task. Must rundoFinally
when the task is complete.- Parameters:
value
- Most recent value from the upstream Flux.doFinally
- Callback to run after asynchronous processing is complete.
-