Interface GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder
- Enclosing interface:
- GuavaEventBusEndpointBuilderFactory
public static interface GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Guava EventBus component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default GuavaEventBusEndpointBuilderFactory.AdvancedGuavaEventBusEndpointProducerBuilder
advanced()
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
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.default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
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.default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
listenerInterface(Class<Object> listenerInterface)
The interface with method(s) marked with the Subscribe annotation.default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
listenerInterface(String listenerInterface)
The interface with method(s) marked with the Subscribe annotation.
-
-
-
Method Detail
-
advanced
default GuavaEventBusEndpointBuilderFactory.AdvancedGuavaEventBusEndpointProducerBuilder advanced()
-
eventClass
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder 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: <code>java.lang.Class<java.lang.Object></code> type. Group: common- Parameters:
eventClass
- the value to set- Returns:
- the dsl builder
-
eventClass
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder 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 <code>java.lang.Class<java.lang.Object></code> type. Group: common- Parameters:
eventClass
- the value to set- Returns:
- the dsl builder
-
listenerInterface
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder 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: <code>java.lang.Class<java.lang.Object></code> type. Group: common- Parameters:
listenerInterface
- the value to set- Returns:
- the dsl builder
-
listenerInterface
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder 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 <code>java.lang.Class<java.lang.Object></code> type. Group: common- Parameters:
listenerInterface
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
-