Interface GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder,GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
- Enclosing interface:
- GuavaEventBusEndpointBuilderFactory
public static interface GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder
extends GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder, GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
Builder for endpoint for the Guava EventBus component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()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.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.listenerInterface(Class<Object> listenerInterface) The interface with method(s) marked with the Subscribe annotation.listenerInterface(String listenerInterface) The interface with method(s) marked with the Subscribe annotation.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
- Specified by:
advancedin interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder- Specified by:
advancedin interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder
-
eventClass
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder 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- Specified by:
eventClassin interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder- Specified by:
eventClassin interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder- Parameters:
eventClass- the value to set- Returns:
- the dsl builder
-
eventClass
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder 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- Specified by:
eventClassin interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder- Specified by:
eventClassin interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder- Parameters:
eventClass- the value to set- Returns:
- the dsl builder
-
listenerInterface
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder 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- Specified by:
listenerInterfacein interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder- Specified by:
listenerInterfacein interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder- Parameters:
listenerInterface- the value to set- Returns:
- the dsl builder
-
listenerInterface
default GuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointBuilder 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- Specified by:
listenerInterfacein interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointConsumerBuilder- Specified by:
listenerInterfacein interfaceGuavaEventBusEndpointBuilderFactory.GuavaEventBusEndpointProducerBuilder- Parameters:
listenerInterface- the value to set- Returns:
- the dsl builder
-