org.apache.camel.component.directvm
Class DirectVmEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.directvm.DirectVmEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId, StatefulService, SuspendableService
@UriEndpoint(scheme="direct-vm",
consumerClass=DirectConsumer.class)
public class DirectVmEndpoint
- extends DefaultEndpoint
The direct-vm endpoint.
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
DirectVmEndpoint
public DirectVmEndpoint(String endpointUri,
DirectVmComponent component)
getComponent
public DirectVmComponent getComponent()
- Description copied from class:
DefaultEndpoint
- Returns the component that created this endpoint.
- Overrides:
getComponent
in class DefaultEndpoint
- Returns:
- the component that created this endpoint, or null if
none set
createProducer
public Producer createProducer()
throws Exception
- Description copied from interface:
Endpoint
- Creates a new producer which is used send messages into the endpoint
- Returns:
- a newly created producer
- Throws:
Exception
- can be thrown
createConsumer
public Consumer createConsumer(Processor processor)
throws Exception
- Description copied from interface:
Endpoint
- Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
- Parameters:
processor
- the given processor
- Returns:
- a newly created consumer
- Throws:
Exception
- can be thrown
isSingleton
public boolean isSingleton()
- Description copied from interface:
IsSingleton
- Whether this class supports being singleton or not.
- Returns:
- true to be a single shared instance, false to create new instances.
getConsumer
public DirectVmConsumer getConsumer()
isBlock
public boolean isBlock()
setBlock
public void setBlock(boolean block)
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
Apache Camel