pulsar-client-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pulsar::MessageRoutingPolicy Class Reference

Public Member Functions

virtual int getPartition (const Message &msg)
 
virtual int getPartition (const Message &msg, const TopicMetadata &topicMetadata)
 

Member Function Documentation

◆ getPartition() [1/2]

virtual int pulsar::MessageRoutingPolicy::getPartition ( const Message msg)
inlinevirtual

◆ getPartition() [2/2]

virtual int pulsar::MessageRoutingPolicy::getPartition ( const Message msg,
const TopicMetadata topicMetadata 
)
inlinevirtual

Choose the partition from the message and topic metadata

Parameters
messagethe Message
topicMetadatathe TopicMetadata that contains the partition number
Returns
the partition number

The documentation for this class was generated from the following file: