@UriEndpoint(scheme="direct", consumerClass=DirectConsumer.class) public class DirectEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
DirectEndpoint() |
DirectEndpoint(String endpointUri,
Component component) |
DirectEndpoint(String uri,
Component component,
Map<String,DirectConsumer> consumers) |
Modifier and Type | Method and Description |
---|---|
void |
addConsumer(DirectConsumer consumer) |
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
|
DirectConsumer |
getConsumer() |
protected String |
getKey() |
long |
getTimeout() |
boolean |
hasConsumer(DirectConsumer consumer) |
boolean |
isBlock() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
removeConsumer(DirectConsumer consumer) |
void |
setBlock(boolean block) |
void |
setTimeout(long timeout) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, 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, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public DirectEndpoint()
public DirectEndpoint(String endpointUri, Component component)
public DirectEndpoint(String uri, Component component, Map<String,DirectConsumer> consumers)
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
public void addConsumer(DirectConsumer consumer)
public void removeConsumer(DirectConsumer consumer)
public boolean hasConsumer(DirectConsumer consumer)
public DirectConsumer getConsumer()
public boolean isBlock()
public void setBlock(boolean block)
public long getTimeout()
public void setTimeout(long timeout)
Apache Camel