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
Description copied from interface:CorrelationIdHandlerGenerates a correlation ID for the given request message.- Specified by:
generatein interfaceCorrelationIdHandler- Parameters:
request- the request message to generate the correlation ID for- Returns:
- the generated correlation ID
-
parse
Description copied from interface:CorrelationIdHandlerParses a correlation ID from the given byte array.- Specified by:
parsein interfaceCorrelationIdHandler- Parameters:
bytes- the byte array from which to parse the correlation ID- Returns:
- the parsed correlation ID
-