Interface CorrelationIdHandler

All Known Implementing Classes:
BytesCorrelationIdHandler, UUIDCorrelationIdHandler

public interface CorrelationIdHandler
Generates and parses correlation IDs for request messages

CDI-managed beans that implement this interface are discovered using the Identifier qualifier to be configured.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(org.eclipse.microprofile.reactive.messaging.Message<?> request)
    Generates a correlation ID for the given request message.
    parse(byte[] bytes)
    Parses a correlation ID from the given byte array.
  • Method Details

    • generate

      CorrelationId generate(org.eclipse.microprofile.reactive.messaging.Message<?> request)
      Generates a correlation ID for the given request message.
      Parameters:
      request - the request message to generate the correlation ID for
      Returns:
      the generated correlation ID
    • parse

      CorrelationId parse(byte[] bytes)
      Parses a correlation ID from the given byte array.
      Parameters:
      bytes - the byte array from which to parse the correlation ID
      Returns:
      the parsed correlation ID