public interface StateZipper<T,S extends Enum> extends Stateful<S>
Describes a generic StateZipper.
See the actual implementation for the AbstractStateZipper for more details and usage information.
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(T identifier)
Deregisters a stream identified by the identifier from the state computation.
|
void |
register(T identifier,
Stateful<S> stateful)
Register the given stream to be zipped into the state computation.
|
void |
terminate()
Terminate the zipper and deregister all registered streams.
|
hasSubscribers, isState, state, statesvoid register(T identifier, Stateful<S> stateful)
Register the given stream to be zipped into the state computation.
identifier - the identifier used to uniquely identify the stream.stateful - the stateful compontent to be registered.void deregister(T identifier)
Deregisters a stream identified by the identifier from the state computation.
identifier - the identifier used to uniquely identify the stream.void terminate()
Terminate the zipper and deregister all registered streams.
Copyright © 2016 Couchbase, Inc.. All rights reserved.