@UriEndpoint(scheme="pulsar",
firstVersion="2.24.0",
title="Pulsar",
syntax="pulsar:persistence://tenant/namespace/topic",
category=MESSAGING)
public class PulsarEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
PulsarEndpoint(String uri,
PulsarComponent component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doInit() |
protected void |
doStart() |
PulsarComponent |
getComponent() |
String |
getNamespace() |
String |
getPersistence() |
org.apache.pulsar.client.api.PulsarClient |
getPulsarClient() |
PulsarConfiguration |
getPulsarConfiguration() |
String |
getTenant() |
String |
getTopic() |
String |
getUri() |
void |
setNamespace(String namespace)
The namespace
|
void |
setPersistence(String persistence)
Whether the topic is persistent or non-persistent
|
void |
setPulsarClient(org.apache.pulsar.client.api.PulsarClient pulsarClient)
To use a custom pulsar client
|
void |
setPulsarConfiguration(PulsarConfiguration pulsarConfiguration) |
void |
setTenant(String tenant)
The tenant
|
void |
setTopic(String topic)
The topic
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, 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, waitpublic PulsarEndpoint(String uri, PulsarComponent component)
public org.apache.camel.Producer createProducer()
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic org.apache.pulsar.client.api.PulsarClient getPulsarClient()
public void setPulsarClient(org.apache.pulsar.client.api.PulsarClient pulsarClient)
public String getPersistence()
public void setPersistence(String persistence)
public String getTenant()
public void setTenant(String tenant)
public String getNamespace()
public void setNamespace(String namespace)
public String getTopic()
public void setTopic(String topic)
public PulsarConfiguration getPulsarConfiguration()
public void setPulsarConfiguration(PulsarConfiguration pulsarConfiguration)
public String getUri()
protected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultEndpointExceptionpublic PulsarComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointApache Camel