List of usage examples for org.springframework.messaging.simp.stomp DefaultStompSession setReceiptTimeLimit
public void setReceiptTimeLimit(long receiptTimeLimit)
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; }