Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reduce the number of executor threads used by PubSub Publisher
ExecutorProvider executorProvider =
InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(4).build();
Publisher.Builder builder =
Publisher.newBuilder(ProjectTopicName.of(proj, topic)).setExecutorProvider(executorProvider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment