Class ProtobufOutboxService

java.lang.Object
one.tomorrow.transactionaloutbox.service.ProtobufOutboxService

@Service @ConditionalOnClass(com.google.protobuf.Message.class) public class ProtobufOutboxService extends Object
  • Constructor Details

    • ProtobufOutboxService

      public ProtobufOutboxService(OutboxService outboxService)
  • Method Details

    • saveForPublishing

      public <T extends com.google.protobuf.Message> OutboxRecord saveForPublishing(String topic, String key, T event, ProtobufOutboxService.Header... headers)
      Save the message/event (as byte array), setting the KafkaHeaders.HEADERS_VALUE_TYPE_NAME to the fully qualified name of the message descriptor.