@Component(value="direct-vm")
public class DirectVmComponent
extends org.apache.camel.support.DefaultComponent
DirectVmEndpoint and
holds the list of named direct-vm endpoints.| Constructor and Description |
|---|
DirectVmComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(DirectVmEndpoint endpoint,
DirectVmConsumer consumer) |
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected void |
doStart() |
protected void |
doStop() |
DirectVmConsumer |
getConsumer(DirectVmEndpoint endpoint) |
static Collection<org.apache.camel.Endpoint> |
getConsumerEndpoints()
Gets all the consumer endpoints.
|
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
long |
getTimeout() |
boolean |
isBlock() |
boolean |
isPropagateProperties() |
void |
removeConsumer(DirectVmEndpoint endpoint,
DirectVmConsumer consumer) |
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 |
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.
|
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static Collection<org.apache.camel.Endpoint> getConsumerEndpoints()
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionpublic DirectVmConsumer getConsumer(DirectVmEndpoint endpoint)
public void addConsumer(DirectVmEndpoint endpoint, DirectVmConsumer consumer)
public void removeConsumer(DirectVmEndpoint endpoint, DirectVmConsumer consumer)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultComponentExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultComponentExceptionpublic boolean isBlock()
public void setBlock(boolean block)
public long getTimeout()
public void setTimeout(long timeout)
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