use of com.rabbitmq.stream.codec.QpidProtonCodec in project rabbitmq-stream-java-client by rabbitmq.
the class ClientTest method publishConsumeComplexMessageWithMessageBuilderAndQpidProtonCodec.
@Test
void publishConsumeComplexMessageWithMessageBuilderAndQpidProtonCodec() {
Codec codec = new QpidProtonCodec();
Client publisher = cf.get(new Client.ClientParameters().codec(codec));
publishConsumeComplexMessage(publisher, codec, i -> publisher.messageBuilder().applicationProperties().entry("id", i).messageBuilder().addData(("message" + i).getBytes(StandardCharsets.UTF_8)).build());
}
Aggregations