com.teststeps.thekla4j.websocket.stomp.spring.SpringStompReceipt Maven / Gradle / Ivy
package com.teststeps.thekla4j.websocket.stomp.spring;
import com.teststeps.thekla4j.websocket.stomp.core.Receipt;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import org.springframework.messaging.simp.stomp.StompSession;
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class SpringStompReceipt implements Receipt {
private final StompSession.Receiptable receiptable;
public static SpringStompReceipt of(StompSession.Receiptable receiptable) {
return new SpringStompReceipt(receiptable);
}
@Override
public String receiptId() {
return receiptable.getReceiptId();
}
public String toString() {
return "ReceiptId: " + receiptId();
}
}