Search in sources :

Example 1 with SubscriptionAdminSettings

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

the class PubsubHelper method getSubscriptionAdminClient.

public SubscriptionAdminClient getSubscriptionAdminClient() throws IOException {
    if (subscriptionAdminClient == null) {
        SubscriptionAdminSettings subscriptionAdminSettings = SubscriptionAdminSettings.newBuilder().setTransportChannelProvider(channelProvider).setCredentialsProvider(EmulatorCredentialsProvider.create()).build();
        subscriptionAdminClient = SubscriptionAdminClient.create(subscriptionAdminSettings);
    }
    return subscriptionAdminClient;
}
Also used : SubscriptionAdminSettings(com.google.cloud.pubsub.v1.SubscriptionAdminSettings)

Aggregations

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