You can use a Pulsar Java client to create Pulsar producers, consumers, and readers in Java and perform administrative tasks. All the methods in Java clients are thread-safe. The current Java client version is 3.1.2.
- Work with clients
- Work with producers
- Work with consumers
- Work with readers
- Work with TableView
- Configure cluster-level failover
The following table outlines the API packages and reference docs for Pulsar Java clients.
|Java client API.
See Client API overview for more reference.
|Java admin API.
See Admin API overview for more reference.
pulsar-client-admin are independently shaded packages. Consequently, the applications using both
pulsar-client-admin have redundant shaded classes. It would be troublesome if you introduce new dependencies but forget to update shading rules.
In this case, you can use
pulsar-client-all, which shades dependencies only one time and reduces the size of dependencies.