Example usage for org.springframework.messaging.simp.stomp DefaultStompSession setReceiptTimeLimit

List of usage examples for org.springframework.messaging.simp.stomp DefaultStompSession setReceiptTimeLimit

Introduction

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

Prototype

public void setReceiptTimeLimit(long receiptTimeLimit) 

Source Link

Document

Configure the time in milliseconds before a receipt expires.

Usage

From source file:org.springframework.messaging.simp.stomp.StompClientSupport.java

/**
 * Factory method for create and configure a new session.
 * @param connectHeaders headers for the STOMP CONNECT frame
 * @param handler the handler for the STOMP session
 * @return the created session//from  ww  w  .j  a  v a2 s .co  m
 */
protected ConnectionHandlingStompSession createSession(StompHeaders connectHeaders,
        StompSessionHandler handler) {
    connectHeaders = processConnectHeaders(connectHeaders);
    DefaultStompSession session = new DefaultStompSession(handler, connectHeaders);
    session.setMessageConverter(getMessageConverter());
    session.setTaskScheduler(getTaskScheduler());
    session.setReceiptTimeLimit(getReceiptTimeLimit());
    return session;
}