DESCRIPTION

JVMCBC-226: Implement API to serialize DCP stream state

Motivation
----------
To simplify DCP state serialization, the BucketStreamAggregatorState
should call user-specified hooks each time the state updated.

Modification
------------
Define a PublishSubject where all state change events posted.

Result
------
The clients of the libraries can inject serialization code for DCP
streams.

Change-Id: I426cb355079f7deb9b129e192d3a11aba0fc84b8
Reviewed-on: http://review.couchbase.org/53663
Tested-by: Cory Peck xxx@xxx.xxx
Reviewed-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Gerrit Code Review
date: 2015-07-27 07:58:18.392000000

Change has been successfully cherry-picked as 2ec94da8032e43cc401c28a7ebccc69d2c1bcdeb

-------------------------------------
