Merge branch 'stable-3.7' into stable-3.8
* stable-3.7:
Set project and Gerrit version to v3.5.6
Remove Maven legacy pom.xml
Make events-broker a Gerrit plugin
Provide subscribers with consumer's group id
Remove actual implementation of InProcessBrokerApi
Set event-broker and gerrit version to v3.4.8
Add interface ExtendedBrokerApi to consume messages with groupId
Change the build result name to events-broker.jar
Bump version to 3.7.2
Set version to 3.6.3
Change-Id: Ic2dc738673f24b1fdf5c4b9b796e5da325406d64
diff --git a/README.md b/README.md
index ef9fea0..3ada0cc 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,12 @@
Publisher, as such:
```java
+import java.util.concurrent.Executor;
+
import com.gerritforge.gerrit.eventbroker.publisher.StreamEventPublisher;
+import com.gerritforge.gerrit.eventbroker.publisher.StreamEventPublisherConfig;
+import com.gerritforge.gerrit.eventbroker.publisher.executor.StreamEventPublisherExecutor;
+import com.gerritforge.gerrit.eventbroker.publisher.executor.StreamEventPublisherExecutorProvider;
import com.google.gerrit.extensions.registration.DynamicSet;
import com.google.gerrit.server.events.EventListener;
import com.google.inject.AbstractModule;
@@ -35,17 +40,18 @@
.toInstance(new StreamEventPublisherConfig(
"name_of_the_stream_events_topic",
messagePublishingTimeout));
-
+
bind(Executor.class).annotatedWith(StreamEventPublisherExecutor.class).toProvider(StreamEventPublisherExecutorProvider.class);
DynamicSet.bind(binder(), EventListener.class).to(StreamEventPublisher.class);
}
}
```
-Alternative way to setup Stream Event Publisher is to use default Guice module:
+Alternative way to setup Stream Event Publisher is to use default Guice module
+`StreamEventPublisherModule`:
```java
-
+import com.gerritforge.gerrit.eventbroker.publisher.StreamEventPublisherConfig;
import com.gerritforge.gerrit.eventbroker.publisher.StreamEventPublisherModule;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;