public class SedaComponent extends DefaultComponent
BlockingQueue
within a CamelContextModifier and Type | Class and Description |
---|---|
static class |
SedaComponent.QueueReference
Holder for queue references.
|
Modifier and Type | Field and Description |
---|---|
protected int |
defaultConcurrentConsumers |
protected org.slf4j.Logger |
log |
protected int |
maxConcurrentConsumers |
protected int |
queueSize |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
SedaComponent() |
Modifier and Type | Method and Description |
---|---|
protected Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
int |
getConcurrentConsumers() |
SedaComponent.QueueReference |
getOrCreateQueue(String uri,
Integer size)
Deprecated.
|
SedaComponent.QueueReference |
getOrCreateQueue(String uri,
Integer size,
Boolean multipleConsumers) |
String |
getQueueKey(String uri) |
SedaComponent.QueueReference |
getQueueReference(String key) |
Map<String,SedaComponent.QueueReference> |
getQueues() |
int |
getQueueSize() |
void |
setConcurrentConsumers(int size) |
void |
setQueueSize(int size) |
afterConfiguration, createConfiguration, createEndpoint, doStart, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
protected final transient org.slf4j.Logger log
protected final int maxConcurrentConsumers
protected int queueSize
protected int defaultConcurrentConsumers
public void setQueueSize(int size)
public int getQueueSize()
public void setConcurrentConsumers(int size)
public int getConcurrentConsumers()
@Deprecated public SedaComponent.QueueReference getOrCreateQueue(String uri, Integer size)
getOrCreateQueue(String, Integer, Boolean)
public SedaComponent.QueueReference getOrCreateQueue(String uri, Integer size, Boolean multipleConsumers)
public Map<String,SedaComponent.QueueReference> getQueues()
public SedaComponent.QueueReference getQueueReference(String key)
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponent
createEndpoint
in class DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
- is thrown if error creating the endpointprotected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class DefaultComponent
Exception
ServiceSupport.doStart()
Apache Camel