|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultEndpoint org.apache.camel.component.seda.SedaEndpoint
public class SedaEndpoint
An implementation of the Queue components for
asynchronous SEDA exchanges on a BlockingQueue
within a CamelContext
Constructor Summary | |
---|---|
SedaEndpoint()
|
|
SedaEndpoint(String endpointUri,
BlockingQueue<Exchange> queue)
|
|
SedaEndpoint(String endpointUri,
BlockingQueue<Exchange> queue,
int concurrentConsumers)
|
|
SedaEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue)
|
|
SedaEndpoint(String endpointUri,
Component component,
BlockingQueue<Exchange> queue,
int concurrentConsumers)
|
Method Summary | |
---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
int |
getConcurrentConsumers()
|
Set<SedaConsumer> |
getConsumers()
Returns the current active consumers on this endpoint |
protected MulticastProcessor |
getConumserMulticastProcessor()
|
List<Exchange> |
getExchanges()
Returns the current pending exchanges |
Set<SedaProducer> |
getProducers()
Returns the current active producers on this endpoint |
BlockingQueue<Exchange> |
getQueue()
|
int |
getSize()
|
long |
getTimeout()
|
WaitForTaskToComplete |
getWaitForTaskToComplete()
|
boolean |
isMultipleConsumers()
|
boolean |
isMultipleConsumersSupported()
Is multiple consumers supported? |
boolean |
isSingleton()
Whether this class supports being singleton or not. |
void |
setConcurrentConsumers(int concurrentConsumers)
|
void |
setMultipleConsumers(boolean multipleConsumers)
|
void |
setQueue(BlockingQueue<Exchange> queue)
|
void |
setSize(int size)
|
void |
setTimeout(long timeout)
|
void |
setWaitForTaskToComplete(WaitForTaskToComplete waitForTaskToComplete)
|
protected void |
updateMulticastProcessor()
|
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Endpoint |
---|
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointKey, getEndpointUri, isLenientProperties, setCamelContext |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Constructor Detail |
---|
public SedaEndpoint()
public SedaEndpoint(String endpointUri, Component component, BlockingQueue<Exchange> queue)
public SedaEndpoint(String endpointUri, Component component, BlockingQueue<Exchange> queue, int concurrentConsumers)
public SedaEndpoint(String endpointUri, BlockingQueue<Exchange> queue)
public SedaEndpoint(String endpointUri, BlockingQueue<Exchange> queue, int concurrentConsumers)
Method Detail |
---|
public Producer createProducer() throws Exception
Endpoint
createProducer
in interface Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
processor
- the given processor
Exception
- can be thrownpublic BlockingQueue<Exchange> getQueue()
protected MulticastProcessor getConumserMulticastProcessor()
protected void updateMulticastProcessor()
public void setQueue(BlockingQueue<Exchange> queue)
public int getSize()
public void setSize(int size)
public void setConcurrentConsumers(int concurrentConsumers)
public int getConcurrentConsumers()
public WaitForTaskToComplete getWaitForTaskToComplete()
public void setWaitForTaskToComplete(WaitForTaskToComplete waitForTaskToComplete)
public long getTimeout()
public void setTimeout(long timeout)
public boolean isMultipleConsumers()
public void setMultipleConsumers(boolean multipleConsumers)
public boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
public List<Exchange> getExchanges()
getExchanges
in interface BrowsableEndpoint
public boolean isMultipleConsumersSupported()
MultipleConsumersSupport
isMultipleConsumersSupported
in interface MultipleConsumersSupport
public Set<SedaConsumer> getConsumers()
public Set<SedaProducer> getProducers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |