Alert publishing and parsing threads that EventHub is closed

So that they terminate after call to EventHub#stopPublishing().

Lower the wait timeout for publishing threads calling EventHub#take
to 2 seconds so that they have time to shutdown nicely before being
interrupted.

Change-Id: Ida6b37b214b6ad914972176b5ac638c48ac9a56c
2 files changed
tree: 1d22f8fcddfb9460c786587bbecb859c83094f35
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl