Skip to content

Commit

Permalink
fix cherry-pick issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Mar 1, 2022
1 parent d13ef6d commit 0b7f7b3
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -19,6 +19,7 @@
package org.apache.pulsar.functions.api;

import org.apache.pulsar.client.api.ClientBuilder;
import org.apache.pulsar.client.api.PulsarClient;
import org.apache.pulsar.common.classification.InterfaceAudience;
import org.apache.pulsar.common.classification.InterfaceStability;
import org.slf4j.Logger;
Expand Down Expand Up @@ -193,6 +194,18 @@ default <S extends StateStore> S getStateStore(String tenant, String ns, String
*/
void recordMetric(String metricName, double value);

/**
* Get the pre-configured pulsar client.
*
* You can use this client to access Pulsar cluster.
* The Function will be responsible for disposing this client.
*
* @return the instance of pulsar client
*/
default PulsarClient getPulsarClient() {
throw new UnsupportedOperationException("not implemented");
}

/**
* Get the pre-configured pulsar client builder.
*
Expand Down

0 comments on commit 0b7f7b3

Please sign in to comment.