Used to subscribe to a stream layer.
More...
#include <SubscribeRequest.h>
Used to subscribe to a stream layer.
◆ SubscriptionMode
The subscription mode.
| Enumerator |
|---|
| kSerial | A default option.
The subscription mode used for applications that read smaller volumes of data with a single subscription.
|
| kParallel | The subscription mode used for applications that read large volumes of data in a parallel manner.
|
◆ GetConsumerId()
| const porting::optional< std::string > & olp::dataservice::read::SubscribeRequest::GetConsumerId |
( |
| ) |
const |
|
inline |
Gets the consumer ID of the request.
- Returns
- The consumer ID.
◆ GetConsumerProperties()
| const porting::optional< ConsumerProperties > & olp::dataservice::read::SubscribeRequest::GetConsumerProperties |
( |
| ) |
const |
|
inline |
Gets the consumer properties of the request.
- Returns
- The consumer properties.
◆ GetSubscriptionId()
| const porting::optional< SubscriptionId > & olp::dataservice::read::SubscribeRequest::GetSubscriptionId |
( |
| ) |
const |
|
inline |
Gets the subscription ID of the request.
- Returns
- The subscription ID.
◆ GetSubscriptionMode()
| SubscriptionMode olp::dataservice::read::SubscribeRequest::GetSubscriptionMode |
( |
| ) |
const |
|
inline |
Gets the subscription mode of the request.
- Returns
- The subscription mode.
◆ WithConsumerId()
template<class T = porting::optional<std::string>>
| SubscribeRequest & olp::dataservice::read::SubscribeRequest::WithConsumerId |
( |
T && |
consumer_id | ) |
|
|
inline |
(Optional) Sets the consumer ID used for the request.
Generated by the HERE platform if missing. Must be UUID. Must be unique within the consumer group (group ID, HRN, layer ID, and application ID (AID)).
- Parameters
-
| consumer_id | The consumer ID. |
- Returns
- A reference to the updated
SubscribeRequest instance.
◆ WithConsumerProperties()
template<class T = porting::optional<std::string>>
| SubscribeRequest & olp::dataservice::read::SubscribeRequest::WithConsumerProperties |
( |
T && |
properties | ) |
|
|
inline |
◆ WithSubscriptionId()
template<class T = porting::optional<std::string>>
| SubscribeRequest & olp::dataservice::read::SubscribeRequest::WithSubscriptionId |
( |
T && |
subscription_id | ) |
|
|
inline |
(Optional) Sets the subscription ID used for the request.
Generated by the HERE platform if missing. Must be UUID. Must be unique within subscriptions.
- Parameters
-
| subscription_id | The subscription ID. |
- Returns
- A reference to the updated
SubscribeRequest instance.
◆ WithSubscriptionMode()
Sets the subscription mode for the request.
The default value is kSerial.
- Parameters
-
| mode | The subscription mode. |
- Returns
- A reference to the updated
SubscribeRequest instance.
The documentation for this class was generated from the following file: