StompMessageHeaders
fun StompMessageHeaders(destination: String, messageId: String, subscription: String, configure: StompMessageHeadersBuilder.() -> Unit = {}): StompMessageHeaders
Creates an instance of StompMessageHeaders with the given destination, messageId, and subscription. Optional headers can be configured using the configure lambda.
fun StompMessageHeaders(destination: String, messageId: String, subscription: String, ack: String? = null, customHeaders: Map<String, String> = emptyMap()): StompMessageHeaders
Deprecated
This overload will be removed in a future version, please use the overload with lambda instead to set optional headers.
Replace with
import org.hildan.krossbow.stomp.headers.StompMessageHeaders
Content copied to clipboard
StompMessageHeaders(destination, messageId, subscription) {
this.ack = ack
putAll(customHeaders)
}Content copied to clipboard