DESCRIPTION

JVMCBC-193: Properly serialize subjects where needed.

Motivation
----------
Subjects need to be serialized when their on* methods are called
potentially from multiple threads in order to prevent concurrent
modifications.

Modifications
-------------
Call .toSerialized on the subjects where needed to properly
serialize the calls downstream.

Result
------
Preventing race conditions in concurrent on* calls.

Change-Id: I19b63c7efbbf94f47ed1652a909d027a357ea68d
Reviewed-on: http://review.couchbase.org/50183
Tested-by: Natasha Sullivan xxx@xxx.xxx
Reviewed-by: Estrella Humphrey xxx@xxx.xxx
Reviewed-on: http://review.couchbase.org/50187


COMMENTS

author: Gerrit Code Review
date: 2015-04-24 15:08:02.572000000

Change has been successfully cherry-picked as 70fe4df9142802ef3e307d5ed1527fc7f4065a0f

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