ReadonlynameThe name of the store (e.g. 'mongodb', 'redis', 'dynamodb')
ReadonlylibraryThe client library being used
Returns the underlying pulsar-client Client for anything not wrapped here.
Produce message to topic. The producer for a topic is created on first
use and cached, so repeated produce() calls to the same topic reuse it.
message may be a UTF-8 string or a Buffer; it is serialized to raw
bytes and sent as { data: Buffer }. Returns the producer's send result.
Subscribe a consumer to topic under subscription and invoke handler
for every received message. Runs a background receive loop that calls
consumer.receive(), passes each message to handler, then
acknowledges it with consumer.acknowledge(msg). The loop stops on
disconnect(). The consumer is tracked so disconnect() closes it.
Returns the created consumer.
Create a Pulsar reader over topic. Readers give non-destructive,
position-controlled reads (no subscription/acks). The reader is tracked so
disconnect() closes it. Returns the created reader.
PulsarStorewraps apulsar-clientClientand exposes Pulsar's core operations: producing messages, consumer subscriptions, and readers.