Skip to content

Instantly share code, notes, and snippets.

@sijie
Created July 9, 2019 07:17
Show Gist options
  • Save sijie/07ce8453f856cdd65d732711b9a84351 to your computer and use it in GitHub Desktop.
Save sijie/07ce8453f856cdd65d732711b9a84351 to your computer and use it in GitHub Desktop.
Key_Shared Subscription Example
client.newConsumer()
    .topic("topic")
    .subscriptionType(SubscriptionType.Key_Shared)
    .subscriptionName("key-shared-subscription")
    .subscribe();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment