@InterfaceAudience.Public @InterfaceStability.Stable public interface SourceContext extends BaseContext
| Modifier and Type | Method and Description |
|---|---|
String |
getOutputTopic()
Get the output topic of the source.
|
String |
getSourceName()
The name of the source that we are executing.
|
<T> org.apache.pulsar.client.api.ConsumerBuilder<T> |
newConsumerBuilder(org.apache.pulsar.client.api.Schema<T> schema)
Create a ConsumerBuilder with the schema.
|
<T> org.apache.pulsar.client.api.TypedMessageBuilder<T> |
newOutputMessage(String topicName,
org.apache.pulsar.client.api.Schema<T> schema)
New output message using schema for serializing to the topic.
|
deleteState, deleteStateAsync, getCounter, getCounterAsync, getInstanceId, getLogger, getNamespace, getNumInstances, getPulsarClient, getPulsarClientBuilder, getSecret, getState, getStateAsync, getStateStore, getStateStore, getTenant, incrCounter, incrCounterAsync, putState, putStateAsync, recordMetricString getSourceName()
String getOutputTopic()
<T> org.apache.pulsar.client.api.TypedMessageBuilder<T> newOutputMessage(String topicName, org.apache.pulsar.client.api.Schema<T> schema) throws org.apache.pulsar.client.api.PulsarClientException
T - topicName - The name of the topic for output messageschema - provide a way to convert between serialized data and domain objectsorg.apache.pulsar.client.api.PulsarClientException<T> org.apache.pulsar.client.api.ConsumerBuilder<T> newConsumerBuilder(org.apache.pulsar.client.api.Schema<T> schema)
throws org.apache.pulsar.client.api.PulsarClientException
T - schema - provide a way to convert between serialized data and domain objectsorg.apache.pulsar.client.api.PulsarClientExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.