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

com.github.lemfi.kest.rabbitmq.model.RabbitMQPublicationProperties.kt Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
package com.github.lemfi.kest.rabbitmq.model

import java.util.Date

data class RabbitMQPublicationProperties(
    val deliveryMode: Int?,
    val type: String?,
    val contentType: String?,
    val contentEncoding: String?,
    val messageId: String?,
    val correlationId: String?,
    val replyTo: String?,
    val expiration: String?,
    val timestamp: Date?,
    val userId: String?,
    val appId: String?,
) {
    override fun toString(): String {
        return listOfNotNull(
            messageId?.let { "messageId: $messageId" },
            replyTo?.let { "replyTo: $replyTo" },
            correlationId?.let { "correlationId: $correlationId" },
            deliveryMode?.let { "deliveryMode: $deliveryMode" },
            type?.let { "type: $type" },
            contentType?.let { "contentType: $contentType" },
            contentEncoding?.let { "contentEncoding: $contentEncoding" },
            expiration?.let { "expiration: $expiration" },
            timestamp?.let { "timestamp: $timestamp" },
            userId?.let { "userId: $userId" },
            appId?.let { "appId: $appId" }
        )
            .joinToString("\n    ")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy