org.apache.camel.component.kestrel
Class KestrelEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.kestrel.KestrelEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId
public class KestrelEndpoint
- extends DefaultEndpoint
Camel endpoint for communication with a kestrel based queue.
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
KestrelEndpoint
public KestrelEndpoint(String endPointURI,
KestrelComponent component,
KestrelConfiguration configuration,
String queue)
getConfiguration
public KestrelConfiguration getConfiguration()
setConfiguration
public void setConfiguration(KestrelConfiguration configuration)
getQueue
public String getQueue()
setQueue
public void setQueue(String queue)
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
isLenientProperties
public boolean isLenientProperties()
- Description copied from interface:
Endpoint
- Should all properties be known or does the endpoint allow unknown options?
lenient = false means that the endpoint should validate that all
given options is known and configured properly.
lenient = true means that the endpoint allows additional unknown options to
be passed to it but does not throw a ResolveEndpointFailedException when creating
the endpoint.
This options is used by a few components for instance the HTTP based that can have
dynamic URI options appended that is targeted for an external system.
Most endpoints is configured to be not lenient.
- Specified by:
isLenientProperties in interface Endpoint- Overrides:
isLenientProperties in class DefaultEndpoint
- Returns:
- whether properties is lenient or not
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.
Apache CAMEL