@UriEndpoint(firstVersion="2.10.0",
scheme="guava-eventbus",
title="Guava EventBus",
syntax="guava-eventbus:eventBusRef",
category=EVENTBUS)
public class GuavaEventBusEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
| Constructor and Description |
|---|
GuavaEventBusEndpoint(String endpointUri,
org.apache.camel.Component component,
com.google.common.eventbus.EventBus eventBus,
Class<?> listenerInterface) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doInit() |
com.google.common.eventbus.EventBus |
getEventBus() |
String |
getEventBusRef() |
Class<?> |
getEventClass() |
Class<?> |
getListenerInterface() |
boolean |
isMultipleConsumersSupported() |
void |
setEventBus(com.google.common.eventbus.EventBus eventBus)
To use the given Guava EventBus instance
|
void |
setEventBusRef(String eventBusRef)
To lookup the Guava EventBus from the registry with the given name
|
void |
setEventClass(Class<?> 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.
|
void |
setListenerInterface(Class<?> listenerInterface)
The interface with method(s) marked with the @Subscribe annotation.
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportpublic String getEventBusRef()
public void setEventBusRef(String eventBusRef)
public com.google.common.eventbus.EventBus getEventBus()
public void setEventBus(com.google.common.eventbus.EventBus eventBus)
public Class<?> getEventClass()
public void setEventClass(Class<?> eventClass)
public Class<?> getListenerInterface()
public void setListenerInterface(Class<?> listenerInterface)
Apache Camel