This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <functional> | |
#include <iostream> | |
#include <memory> | |
using namespace std; | |
static std::atomic_int idGenerator{0}; | |
struct Object { | |
int id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws PulsarClientException { | |
final String subName = "test"; | |
final String topicName = "persistent://public/default/testAckMessageWithMultipleConsumers-" + UUID.randomUUID(); | |
PulsarClient pulsarClient = PulsarClient.builder().serviceUrl("pulsar://localhost:6650").build(); | |
@Cleanup | |
Producer<byte[]> producer = pulsarClient |