Java org.springframework.messaging.simp.stomp StompSession fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.messaging.simp.stomp StompSession fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.messaging.simp.stomp StompSession.

The text is from its open source code.

Implementation

org.springframework.messaging.simp.stomp.StompSession has the following implementations.
Click this link to see all its implementation.

Method

voiddisconnect()
Disconnect the session by sending a DISCONNECT frame.
Receiptablesend(String destination, Object payload)
Send a message to the specified destination, converting the payload to a byte[] with the help of a org.springframework.messaging.converter.MessageConverter MessageConverter .
Receiptablesend(StompHeaders headers, Object payload)
An overloaded version of #send(String,Object) with full StompHeaders instead of just a destination.
voidsetAutoReceipt(boolean enabled)
When enabled, a receipt header is automatically added to future send and subscribe operations on this session, which causes the server to return a RECEIPT.
Subscriptionsubscribe(String destination, StompFrameHandler handler)
Subscribe to the given destination by sending a SUBSCRIBE frame and handle received messages with the specified StompFrameHandler .
Subscriptionsubscribe(StompHeaders headers, StompFrameHandler handler)
An overloaded version of #subscribe(String,StompFrameHandler) with full StompHeaders instead of just a destination.