Guava EventBus

Guava EventBus

Description: Camel component for Guava EventBus (http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/eventbus/EventBus.html). Supports both producer and consumer endpoints.
Scheme: guava-eventbus
Syntax: guava-eventbus:eventBusRef
Maven: org.apache.camel/camel-guava-eventbus/2.16.1

Guava EventBus (http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/eventbus/EventBus.html) endpoint. Can create both producer and consumer ends of the route.

Name Kind Group Required Default Type Enum Description
eventBusRef path common java.lang.String To lookup the Guava EventBus from the registry with the given name
eventClass parameter common java.lang.Class If used on the consumer side of the route, will filter events received from the EventBus to the instances of the class and superclasses of eventClass. Null value of this option is equal to setting it to the java.lang.Object i.e. the consumer will capture all messages incoming to the event bus. This option cannot be used together with listenerInterface option.
listenerInterface parameter common java.lang.Class The interface with method(s) marked with the @Subscribe annotation. Dynamic proxy will be created over the interface so it could be registered as the EventBus listener. Particularly useful when creating multi-event listeners and for handling DeadEvent properly. This option cannot be used together with eventClass option.
exchangePattern parameter advanced InOnly org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

guava-eventbus consumer

Guava EventBus (http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/eventbus/EventBus.html) consumer reading messages from the bus and forwarding them to the Camel routes.