the pulsar client to create a consumer on
the topic to read messages from
the messageId to seek, to start from the beginning of the topic, use MessageId.earliest
the maximum number of messages to receive before terminating. Set to Long.MaxValue for an unbounded number of messages.
A Pulsar publisher will attach to a pulsar instance and publish the messages on a topic.