lib.RedisService.addMessage()

Here are the examples of the java api lib.RedisService.addMessage() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

12 Source : App.java
with MIT License
from PacktPublishing

@KafkaListener(topics = "message")
public void process(@Payload Message message, @Headers MessageHeaders headers) throws Exception {
    Span span = kafka.startConsumerSpan("process", headers);
    try (Scope scope = tracer.scopeManager().activate(span, true)) {
        System.out.println("Received message: " + message.message);
        redis.addMessage(message);
        System.out.println("Added message to room.");
    }
}