All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lsdconsulting.interceptors.rabbitmq.AmqpHeaderRetriever.kt Maven / Gradle / Ivy

Go to download

Provides various interceptors to capture events for the lsd-core library to generate sequence diagrams

There is a newer version: 8.0.63
Show newest version
package io.lsdconsulting.interceptors.rabbitmq

import lsd.format.prettyPrint
import org.springframework.amqp.core.Message

fun retrieve(message: Message): Map> =
    message.messageProperties.headers.entries.associate {
        it.key to (it.value?.let { _ -> listOf(prettyPrint(it.value)) } ?: emptyList())
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy