@Component(value="pulsar")
public class PulsarComponent
extends org.apache.camel.support.DefaultComponent
| Constructor and Description |
|---|
PulsarComponent() |
PulsarComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String path,
Map<String,Object> parameters) |
AutoConfiguration |
getAutoConfiguration() |
org.apache.pulsar.client.api.PulsarClient |
getPulsarClient() |
PulsarMessageReceiptFactory |
getPulsarMessageReceiptFactory() |
boolean |
isAllowManualAcknowledgement() |
void |
setAllowManualAcknowledgement(boolean allowManualAcknowledgement)
Whether to allow manual message acknowledgements.
|
void |
setAutoConfiguration(AutoConfiguration autoConfiguration)
The pulsar auto configuration
|
void |
setPulsarClient(org.apache.pulsar.client.api.PulsarClient pulsarClient)
The pulsar client
|
void |
setPulsarMessageReceiptFactory(PulsarMessageReceiptFactory pulsarMessageReceiptFactory)
Provide a factory to create an alternate implementation of
PulsarMessageReceipt. |
afterConfiguration, createEndpoint, createEndpoint, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doBuild, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic PulsarComponent()
public PulsarComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String path, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionpublic AutoConfiguration getAutoConfiguration()
public void setAutoConfiguration(AutoConfiguration autoConfiguration)
public org.apache.pulsar.client.api.PulsarClient getPulsarClient()
public void setPulsarClient(org.apache.pulsar.client.api.PulsarClient pulsarClient)
public boolean isAllowManualAcknowledgement()
public void setAllowManualAcknowledgement(boolean allowManualAcknowledgement)
PulsarMessageReceipt is stored as a header on the
Exchange. Messages can then be acknowledged
using PulsarMessageReceipt at any time before the ackTimeout
occurs.public PulsarMessageReceiptFactory getPulsarMessageReceiptFactory()
public void setPulsarMessageReceiptFactory(PulsarMessageReceiptFactory pulsarMessageReceiptFactory)
PulsarMessageReceipt.Apache Camel