class documentation
class Reader: (source)
Pulsar topic reader.
Method | close |
Close the reader. |
Method | has |
Check if there is any message available to read from the current position. |
Method | is |
Check if the reader is connected or not. |
Method | read |
Read a single message. |
Method | seek |
Reset this reader to a specific message id or publish timestamp. The message id can either be a specific message or represent the first or last messages in the topic. Note: this operation can only be done on non-partitioned topics... |
Method | topic |
Return the topic this reader is reading from. |
Read a single message.
If a message is not immediately available, this method will block until a new message is available.
Parameters | |
timeoutint , optional | If specified, the receiver will raise an exception if a message is not available within the timeout. |
Reset this reader to a specific message id or publish timestamp. The message id can either be a specific message or represent the first or last messages in the topic. Note: this operation can only be done on non-partitioned topics. For these, one can rather perform the seek() on the individual partitions.
Parameters | |
messageid | The message id for seek, OR an integer event time to seek to |