@UriEndpoint(scheme="guava-eventbus",
title="Guava EventBus",
syntax="guava-eventbus:eventBusRef",
consumerClass=GuavaEventBusConsumer.class,
label="eventbus")
public class GuavaEventBusEndpoint
extends org.apache.camel.impl.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.Exchange |
createExchange(Object event) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
com.google.common.eventbus.EventBus |
getEventBus() |
String |
getEventBusRef() |
Class<?> |
getEventClass() |
Class<?> |
getListenerInterface() |
boolean |
isMultipleConsumersSupported() |
boolean |
isSingleton() |
void |
setEventBus(com.google.common.eventbus.EventBus eventBus) |
void |
setEventBusRef(String eventBusRef) |
void |
setEventClass(Class<?> eventClass) |
void |
setListenerInterface(Class<?> listenerInterface) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic 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 isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportpublic org.apache.camel.Exchange createExchange(Object event)
public 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