Merge "Document how plugins can listen to stream-events" into stable-2.8

This commit is contained in:
David Pursehouse
2013-11-05 00:59:36 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ The currently supported message types are *patchset-created*,
Note that any field may be missing in the JSON messages, so consumers of
this JSON stream should deal with that appropriately.
[[events]]
Events
~~~~~~
Patchset Created

View File

@@ -323,6 +323,12 @@ Certain operations in Gerrit trigger events. Plugins may receive
notifications of these events by implementing the corresponding
listeners.
* `com.google.gerrit.common.ChangeListener`:
+
Allows to listen to change events. These are the same
link:cmd-stream-events.html#events[events] that are also streamed by
the link:cmd-stream-events.html[gerrit stream-events] command.
* `com.google.gerrit.extensions.events.LifecycleListener`:
+
Gerrit server startup and shutdown