Interface GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder

    • Method Detail

      • eventClass

        default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder eventClass​(Class<Object> eventClass)
        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. The option is a: java.lang.Class<java.lang.Object> type. Group: common
      • eventClass

        default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder eventClass​(String eventClass)
        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. The option will be converted to a java.lang.Class<java.lang.Object> type. Group: common
      • listenerInterface

        default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder listenerInterface​(Class<Object> listenerInterface)
        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. The option is a: java.lang.Class<java.lang.Object> type. Group: common
      • listenerInterface

        default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder listenerInterface​(String listenerInterface)
        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. The option will be converted to a java.lang.Class<java.lang.Object> type. Group: common
      • bridgeErrorHandler

        default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder bridgeErrorHandler​(boolean bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: boolean type. Default: false Group: consumer
      • bridgeErrorHandler

        default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder bridgeErrorHandler​(String bridgeErrorHandler)
        Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a boolean type. Default: false Group: consumer