@UriEndpoint(firstVersion="2.10.0",
scheme="direct-vm",
title="Direct VM",
syntax="direct-vm:name",
category={CORE,ENDPOINT})
public class DirectVmEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.AsyncEndpoint
| Constructor and Description |
|---|
DirectVmEndpoint(String endpointUri,
DirectVmComponent component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
DirectVmComponent |
getComponent() |
DirectVmConsumer |
getConsumer() |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
long |
getTimeout() |
boolean |
isBlock() |
boolean |
isFailIfNoConsumers() |
boolean |
isPropagateProperties() |
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-VM endpoint with no active
consumers.
|
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Sets a
HeaderFilterStrategy that will only be applied on producer endpoints (on both directions: request
and response). |
void |
setPropagateProperties(boolean propagateProperties)
Whether to propagate or not properties from the producer side to the consumer side, and vice versa.
|
void |
setTimeout(long timeout)
The timeout value to use if block is enabled.
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, 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, waitconfigureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer, setCamelContextpublic DirectVmEndpoint(String endpointUri, DirectVmComponent component)
public DirectVmComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic DirectVmConsumer getConsumer()
public boolean isBlock()
public void setBlock(boolean block)
public long getTimeout()
public void setTimeout(long timeout)
public boolean isFailIfNoConsumers()
public void setFailIfNoConsumers(boolean failIfNoConsumers)
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
HeaderFilterStrategy that will only be applied on producer endpoints (on both directions: request
and response).
Default value: none.
public boolean isPropagateProperties()
public void setPropagateProperties(boolean propagateProperties)
Default value: true.
Apache Camel