Java Client
The sample Java client uses Pub/Sub API to publish and subscribe to platform events.
Pub/Sub API provides a single interface to publish and subscribe to event messages. Based on gRPC
and HTTP/2, Pub/Sub API enables efficient delivery of binary event messages in the Apache Avro
format.
Check out Java Quick Start for Publishing and Subscribing to Events in the Pub/Sub API Developer Guide.