org.apache.camel.component.routebox.seda
Class RouteboxSedaEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.routebox.RouteboxEndpoint
org.apache.camel.component.routebox.seda.RouteboxSedaEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, MultipleConsumersSupport, Service, ShutdownableService, BrowsableEndpoint, HasId
public class RouteboxSedaEndpoint
- extends RouteboxEndpoint
- implements BrowsableEndpoint, MultipleConsumersSupport
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
RouteboxSedaEndpoint
public RouteboxSedaEndpoint(String endpointUri,
RouteboxComponent component,
RouteboxConfiguration config)
throws Exception
- Throws:
Exception
RouteboxSedaEndpoint
public RouteboxSedaEndpoint(String endpointUri,
RouteboxComponent component,
RouteboxConfiguration config,
BlockingQueue<Exchange> queue)
throws Exception
- Throws:
Exception
createConsumer
public Consumer createConsumer(Processor processor)
throws Exception
- Description copied from interface:
Endpoint
- Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
- Specified by:
createConsumer in interface Endpoint
- Parameters:
processor - the given processor
- Returns:
- a newly created consumer
- Throws:
Exception - can be thrown
createProducer
public Producer createProducer()
throws Exception
- Description copied from interface:
Endpoint
- Creates a new producer which is used send messages into the endpoint
- Specified by:
createProducer in interface Endpoint
- Returns:
- a newly created producer
- Throws:
Exception - can be thrown
isSingleton
public boolean isSingleton()
- Description copied from interface:
IsSingleton
- Whether this class supports being singleton or not.
- Specified by:
isSingleton in interface IsSingleton
- Returns:
- true to be a single shared instance, false to create new instances.
onStarted
public void onStarted(RouteboxProducer producer)
onStopped
public void onStopped(RouteboxProducer producer)
onStarted
public void onStarted(RouteboxConsumer consumer)
onStopped
public void onStopped(RouteboxConsumer consumer)
getConsumers
public Set<RouteboxConsumer> getConsumers()
getProducers
public Set<RouteboxProducer> getProducers()
setQueue
public void setQueue(BlockingQueue<Exchange> queue)
getWaitForTaskToComplete
public WaitForTaskToComplete getWaitForTaskToComplete()
setWaitForTaskToComplete
public void setWaitForTaskToComplete(WaitForTaskToComplete waitForTaskToComplete)
getQueue
public BlockingQueue<Exchange> getQueue()
isMultipleConsumersSupported
public boolean isMultipleConsumersSupported()
- Description copied from interface:
MultipleConsumersSupport
- Is multiple consumers supported?
- Specified by:
isMultipleConsumersSupported in interface MultipleConsumersSupport
- Returns:
- true if multiple consumers is supported
getExchanges
public List<Exchange> getExchanges()
- Description copied from interface:
BrowsableEndpoint
- Return the exchanges available on this endpoint
- Specified by:
getExchanges in interface BrowsableEndpoint
- Returns:
- the exchanges on this endpoint
Apache CAMEL