Package com.couchbase.client.core.util
Interface Stateful<S>
- All Known Implementing Classes:
AnalyticsEndpoint,AnalyticsService,BackupEndpoint,BackupService,BaseEndpoint,CompositeStateful,EventingEndpoint,EventingService,KeyValueEndpoint,KeyValueService,ManagerEndpoint,ManagerService,Node,QueryEndpoint,QueryService,SearchEndpoint,SearchService,SingleStateful,ViewEndpoint,ViewService
public interface Stateful<S>
Common interface for stateful components.
-
Method Summary
-
Method Details
-
state
S state()Returns the current state of the stateful component. -
states
reactor.core.publisher.Flux<S> states()Returns a stream of states for this component as they change.Subscribers may be notified synchronously while the component holds internal locks, so they must not block or do non-trivial work on the notifying thread. See
SingleStatefulfor details.
-