4#include "eventhubs_exception.hpp"
5#include "models/event_data.hpp"
6#include "models/partition_client_models.hpp"
8#include <azure/core/amqp.hpp>
9#include <azure/core/amqp/internal/message_receiver.hpp>
10#include <azure/core/datetime.hpp>
11#include <azure/core/http/policies/policy.hpp>
12#include <azure/core/nullable.hpp>
14namespace Azure {
namespace Messaging {
namespace EventHubs {
16 class PartitionClientFactory;
82 std::vector<std::shared_ptr<const Models::ReceivedEventData>>
ReceiveEvents(
84 Core::Context
const& context = {});
88 void Close(Core::Context
const& context) { m_receiver.Close(context); }
91 friend class _detail::PartitionClientFactory;
93 Azure::Core::Amqp::_internal::MessageReceiver m_receiver;
104 Azure::Core::Http::Policies::RetryOptions m_retryOptions{};
114 Azure::Core::Amqp::_internal::MessageReceiver
const& messageReceiver,
115 PartitionClientOptions options,
116 Core::Http::Policies::RetryOptions retryOptions);
118 std::string GetStartExpression(Models::StartPosition
const& startPosition);
Definition partition_client.hpp:58
PartitionClient(PartitionClient &&other)=default
Create a PartitionClient moving from another PartitionClient.
virtual ~PartitionClient()
Definition partition_client.cpp:174
std::vector< std::shared_ptr< const Models::ReceivedEventData > > ReceiveEvents(uint32_t maxMessages, Core::Context const &context={})
Definition partition_client.cpp:188
PartitionClient & operator=(PartitionClient const &other)=delete
Assign a PartitionClient to another PartitionClient.
PartitionClient & operator=(PartitionClient &&other)=default
Move a PartitionClient to another PartitionClient.
PartitionClient(PartitionClient const &other)=delete
Create a PartitionClient from another PartitionClient.
void Close(Core::Context const &context)
Closes the connection to the Event Hub service.
Definition partition_client.hpp:88
StartPosition indicates the position to start receiving events within a partition....
Definition partition_client_models.hpp:18
Definition partition_client.hpp:22
Azure::Nullable< std::int64_t > OwnerLevel
OwnerLevel is the priority for this partition client, also known as the 'epoch' level....
Definition partition_client.hpp:38
int32_t Prefetch
Prefetch represents the size of the internal prefetch buffer. When set, this client will attempt to a...
Definition partition_client.hpp:50
Models::StartPosition StartPosition
StartPosition is the position we will start receiving events from, either an offset (inclusive) with ...
Definition partition_client.hpp:31