25 #include <olp/core/client/CancellationContext.h>
26 #include <olp/core/client/CancellationToken.h>
27 #include <olp/core/client/HRN.h>
28 #include <olp/core/client/OlpClientSettings.h>
29 #include <olp/dataservice/read/DataServiceReadApi.h>
30 #include <olp/dataservice/read/SeekRequest.h>
31 #include <olp/dataservice/read/SubscribeRequest.h>
32 #include <olp/dataservice/read/Types.h>
33 #include <olp/dataservice/read/model/Messages.h>
36 namespace dataservice {
38 class StreamLayerClientImpl;
142 SubscribeResponseCallback callback);
191 DataResponseCallback callback);
255 SeekResponseCallback callback);
275 std::unique_ptr<StreamLayerClientImpl> impl_;
A wrapper template that you can use to cancel a request or wait for it to finalize.
Definition: ApiResponse.h:281
Cancels service requests.
Definition: CancellationToken.h:33
Allows a Here Resource Name (HRN) to be passed to the operations that require it.
Definition: HRN.h:34
Requests to seek an offset for a stream layer.
Definition: SeekRequest.h:34
Provides the ability to consume data from a stream layer in real time.
Definition: StreamLayerClient.h:96
client::CancellableFuture< UnsubscribeResponse > Unsubscribe()
Deletes the current subscription for the stream layer.
client::CancellableFuture< SeekResponse > Seek(SeekRequest request)
Allows changing the data stream reading offset.
StreamLayerClient(StreamLayerClient &&other) noexcept
A default move constructor.
StreamLayerClient(client::HRN catalog, std::string layer_id, client::OlpClientSettings settings)
Creates the StreamLayerClient instance.
client::CancellationToken Subscribe(SubscribeRequest request, SubscribeResponseCallback callback)
Enables message consumption for the specific stream layer.
bool CancelPendingRequests()
Cancels all the active and pending requests.
client::CancellationToken Poll(PollResponseCallback callback)
Reads messages from a stream layer and commits successfully consumed messages before returning them t...
StreamLayerClient & operator=(const StreamLayerClient &other)=delete
A copy assignment operator.
client::CancellationToken GetData(const model::Message &message, DataResponseCallback callback)
Downloads the message data using the data handle from the given message metadata.
client::CancellableFuture< DataResponse > GetData(const model::Message &message)
Downloads message data using a data handle from the given message metadata.
StreamLayerClient(const StreamLayerClient &other)=delete
A copy constructor.
client::CancellationToken Seek(SeekRequest request, SeekResponseCallback callback)
Allows changing the data stream reading offset.
client::CancellableFuture< SubscribeResponse > Subscribe(SubscribeRequest request)
Enables message consumption for the specific stream layer.
client::CancellableFuture< PollResponse > Poll()
Reads messages from a stream layer and commits successfully consumed messages before returning them t...
StreamLayerClient & operator=(StreamLayerClient &&other) noexcept
A move assignment operator.
client::CancellationToken Unsubscribe(UnsubscribeResponseCallback callback)
Deletes the current subscription for the stream layer.
Used to subscribe to a stream layer.
Definition: SubscribeRequest.h:36
Represents a message read from a stream layer.
Definition: Messages.h:202
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Configures the behavior of the OlpClient class.
Definition: OlpClientSettings.h:180