@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.
|
<O> org.apache.pulsar.client.api.ConsumerBuilder<O> |
newConsumerBuilder(org.apache.pulsar.client.api.Schema<O> schema)
Create a ConsumerBuilder with the schema.
|
<O> org.apache.pulsar.client.api.TypedMessageBuilder<O> |
newOutputMessage(String topicName,
org.apache.pulsar.client.api.Schema<O> schema)
New output message using schema for serializing to the topic
|
deleteState, deleteStateAsync, getCounter, getCounterAsync, getInstanceId, getLogger, getNamespace, getNumInstances, getPulsarClient, getSecret, getState, getStateAsync, getStateStore, getStateStore, getTenant, incrCounter, incrCounterAsync, putState, putStateAsync, recordMetricString getSourceName()
String getOutputTopic()
<O> org.apache.pulsar.client.api.TypedMessageBuilder<O> newOutputMessage(String topicName, org.apache.pulsar.client.api.Schema<O> schema) throws org.apache.pulsar.client.api.PulsarClientException
O - 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<O> org.apache.pulsar.client.api.ConsumerBuilder<O> newConsumerBuilder(org.apache.pulsar.client.api.Schema<O> schema)
throws org.apache.pulsar.client.api.PulsarClientException
O - schema - provide a way to convert between serialized data and domain objectsorg.apache.pulsar.client.api.PulsarClientExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.