Class BytesCorrelationIdHandler

java.lang.Object
io.smallrye.reactive.messaging.kafka.reply.BytesCorrelationIdHandler
All Implemented Interfaces:
CorrelationIdHandler

@ApplicationScoped @Identifier("bytes") public class BytesCorrelationIdHandler extends Object implements CorrelationIdHandler
  • Constructor Details

    • BytesCorrelationIdHandler

      public BytesCorrelationIdHandler()
  • Method Details

    • generate

      public CorrelationId generate(org.eclipse.microprofile.reactive.messaging.Message<?> request)
      Description copied from interface: CorrelationIdHandler
      Generates a correlation ID for the given request message.
      Specified by:
      generate in interface CorrelationIdHandler
      Parameters:
      request - the request message to generate the correlation ID for
      Returns:
      the generated correlation ID
    • parse

      public CorrelationId parse(byte[] bytes)
      Description copied from interface: CorrelationIdHandler
      Parses a correlation ID from the given byte array.
      Specified by:
      parse in interface CorrelationIdHandler
      Parameters:
      bytes - the byte array from which to parse the correlation ID
      Returns:
      the parsed correlation ID