Search in sources :

Example 1 with TopicAdminSettings

use of com.google.cloud.pubsub.v1.TopicAdminSettings in project flink by apache.

the class PubsubHelper method getTopicAdminClient.

public TopicAdminClient getTopicAdminClient() throws IOException {
    if (topicClient == null) {
        TopicAdminSettings topicAdminSettings = TopicAdminSettings.newBuilder().setTransportChannelProvider(channelProvider).setCredentialsProvider(EmulatorCredentialsProvider.create()).build();
        topicClient = TopicAdminClient.create(topicAdminSettings);
    }
    return topicClient;
}
Also used : TopicAdminSettings(com.google.cloud.pubsub.v1.TopicAdminSettings)

Aggregations

TopicAdminSettings (com.google.cloud.pubsub.v1.TopicAdminSettings)1