@UriEndpoint(firstVersion="1.0.0",
scheme="direct",
title="Direct",
syntax="direct:name",
category={CORE,ENDPOINT})
public class DirectEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
DirectEndpoint(String uri,
DirectComponent component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
DirectConsumer |
getConsumer()
Deprecated.
|
long |
getTimeout() |
boolean |
isBlock() |
boolean |
isFailIfNoConsumers() |
boolean |
isSynchronous() |
void |
setBlock(boolean block)
If sending a message to a direct endpoint which has no active consumer, then we can tell the producer to block
and wait for the consumer to become active.
|
void |
setFailIfNoConsumers(boolean failIfNoConsumers)
Whether the producer should fail by throwing an exception, when sending to a DIRECT endpoint with no active
consumers.
|
void |
setSynchronous(boolean synchronous)
Whether synchronous processing is forced.
|
void |
setTimeout(long timeout)
The timeout value to use if block is enabled.
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic DirectEndpoint(String uri, DirectComponent component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exception@Deprecated public DirectConsumer getConsumer() throws InterruptedException
InterruptedExceptionpublic boolean isSynchronous()
public void setSynchronous(boolean synchronous)
public boolean isBlock()
public void setBlock(boolean block)
public long getTimeout()
public void setTimeout(long timeout)
public boolean isFailIfNoConsumers()
public void setFailIfNoConsumers(boolean failIfNoConsumers)
Apache Camel