List of usage examples for org.springframework.messaging.simp.stomp StompHeaders getReceipt
@Nullable
public String getReceipt()
From source file:org.springframework.messaging.simp.stomp.DefaultStompSession.java
@Nullable private String checkOrAddReceipt(StompHeaders stompHeaders) { String receiptId = stompHeaders.getReceipt(); if (isAutoReceiptEnabled() && receiptId == null) { receiptId = String.valueOf(DefaultStompSession.this.receiptIndex.getAndIncrement()); stompHeaders.setReceipt(receiptId); }/* www. j a v a2s . c o m*/ return receiptId; }