Example usage for org.springframework.messaging.simp.stomp StompHeaders getReceipt

List of usage examples for org.springframework.messaging.simp.stomp StompHeaders getReceipt

Introduction

In this page you can find the example usage for org.springframework.messaging.simp.stomp StompHeaders getReceipt.

Prototype

@Nullable
public String getReceipt() 

Source Link

Document

Get the receipt header.

Usage

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;
}