StompSubscribeHeaders
fun StompSubscribeHeaders(destination: String, configure: StompSubscribeHeadersBuilder.() -> Unit = {}): StompSubscribeHeaders
Creates an instance of StompSubscribeHeaders with the given destination header. Optional headers can be configured using the configure lambda.
fun StompSubscribeHeaders(destination: String, id: String? = null, ack: AckMode = AckMode.AUTO, receipt: String? = null, customHeaders: Map<String, String> = emptyMap()): StompSubscribeHeaders
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.StompSubscribeHeaders
Content copied to clipboard
StompSubscribeHeaders(destination) {
id?.let { this.id = it }
this.ack = ack
this.receipt = receipt
putAll(customHeaders)
}Content copied to clipboard