public class ServiceStateZipper extends AbstractStateZipper<Service,LifecycleState>
Calculates a merged state for all registered services.
Constructor and Description |
---|
ServiceStateZipper(LifecycleState initial) |
Modifier and Type | Method and Description |
---|---|
protected LifecycleState |
zipWith(Collection<LifecycleState> states)
The zip function to map from N states to one that represents the state of the zipper.
|
currentStates, currentSubscriptions, deregister, register, terminate
hasSubscribers, isState, state, states, transitionState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasSubscribers, isState, state, states
public ServiceStateZipper(LifecycleState initial)
protected LifecycleState zipWith(Collection<LifecycleState> states)
AbstractStateZipper
The zip function to map from N states to one that represents the state of the zipper.
zipWith
in class AbstractStateZipper<Service,LifecycleState>
states
- all subscribed states.Copyright © 2018 Couchbase, Inc.. All rights reserved.