PubSubMessageBuilder Constructor(String,Int32,Boolean)
- Last UpdatedApr 08, 2026
- 1 minute read
Initializes a new instance of PubSubMessageBuilder class with the specified parameters.
Parameters
- topic
- The PubSub topic associated with this message builder.
- capacity
- The initial capacity for the underlying PubSub message buffer.
- publiclyVisible
- Indicates whether GetBuffer can be called to expose the underlying memory buffer.
The PubSubMessage returned from GetResult will have PubSubMessage.HeaderData set to PubSubHeaderData.PS_NORMAL_DATA and PubSubMessage.Status set to PubSubStatus.PS_OK.