| Modifier and Type | Class and Description |
|---|---|
| public static interface | StompSession.
A handle to use to track receipts. |
| public static interface | StompSession.
A handle to use to unsubscribe or to track a receipt. |
| Modifier and Type | Method and Description |
|---|---|
| public StompSession. | Returns: a Receiptable for tracking receiptsthe id of the message messageId, boolean whether the message was consumed or not consumed)Send an acknowledgement whether a message was consumed or not resulting in an ACK or NACK frame respectively. |
| public StompSession. | Returns: a Receiptable for tracking receiptsthe headers for the ACK or NACK message frame headers, boolean whether the message was consumed or not consumed)An overloaded version of |
| public void | |
| public void | disconnect(StompHeaders
the headers for the disconnect message frame headers)Variant of |
| public String | |
| public boolean | |
| public StompSession. | Returns: a Receiptable for tracking receiptsthe destination to send a message to destination, Object the message payload payload)Send a message to the specified destination, converting the payload to a
|
| public StompSession. | Returns: a Receiptable for tracking receiptsthe message headers headers, Object the message payload payload)An overloaded version of |
| public void | setAutoReceipt(boolean enabled)
When enabled, a receipt header is automatically added to future
|
| public StompSession. | Returns: a handle to use to unsubscribe and/or track receiptsthe destination to subscribe to destination, StompFrameHandler the handler for received messages handler)Subscribe to the given destination by sending a SUBSCRIBE frame and handle
received messages with the specified |
| public StompSession. | Returns: a handle to use to unsubscribe and/or track receiptsthe headers for the subscribed message frame headers, StompFrameHandler the handler for received messages handler)An overloaded version of |
| acknowledge | back to summary |
|---|---|
| public StompSession. Send an acknowledgement whether a message was consumed or not resulting in an ACK or NACK frame respectively. Note to use this when subscribing you must set the
| |
| acknowledge | back to summary |
|---|---|
| public StompSession. An overloaded version of
| |
| disconnect | back to summary |
|---|---|
| public void disconnect() Disconnect the session by sending a DISCONNECT frame. | |
| disconnect | back to summary |
|---|---|
| public void disconnect(StompHeaders headers) Variant of
| |
| getSessionId | back to summary |
|---|---|
| public String getSessionId() Return the id for the session. | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Whether the session is connected. | |
| send | back to summary |
|---|---|
| public StompSession. Send a message to the specified destination, converting the payload to a
| |
| send | back to summary |
|---|---|
| public StompSession. An overloaded version of
| |
| setAutoReceipt | back to summary |
|---|---|
| public void setAutoReceipt(boolean enabled) When enabled, a receipt header is automatically added to future
A receipt header can also be added manually through the overloaded
methods that accept | |
| subscribe | back to summary |
|---|---|
| public StompSession. Subscribe to the given destination by sending a SUBSCRIBE frame and handle
received messages with the specified
| |
| subscribe | back to summary |
|---|---|
| public StompSession. An overloaded version of
| |
setAutoReceipt(boolean)
| Modifier and Type | Method and Description |
|---|---|
| public void | addReceiptLostTask(Runnable
the task to invoke task)Task to invoke when a receipt is not received in the configured time. |
| public void | |
| public void | addReceiptTask(Consumer<StompHeaders>
the consumer to invoke task)Variant of |
| public String | getReceiptId()
Return the receipt id, or |
| addReceiptLostTask | back to summary |
|---|---|
| public void addReceiptLostTask(Runnable task) Task to invoke when a receipt is not received in the configured time.
| |
| addReceiptTask | back to summary |
|---|---|
| public void addReceiptTask(Runnable task) Task to invoke when a receipt is received.
| |
| addReceiptTask | back to summary |
|---|---|
| public void addReceiptTask(Consumer<StompHeaders> task) Variant of
| |
| getReceiptId | back to summary |
|---|---|
| public String getReceiptId() Return the receipt id, or
| |
| Modifier and Type | Method and Description |
|---|---|
| public StompHeaders | |
| public String | |
| public void | |
| public void | unsubscribe(StompHeaders
the custom headers, if any headers)Alternative to |
| getSubscriptionHeaders | back to summary |
|---|---|
| public StompHeaders getSubscriptionHeaders() Return the headers used on the SUBSCRIBE frame.
| |
| getSubscriptionId | back to summary |
|---|---|
| public String getSubscriptionId() Return the id for the subscription.
| |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe() Remove the subscription by sending an UNSUBSCRIBE frame. | |
| unsubscribe | back to summary |
|---|---|
| public void unsubscribe(StompHeaders headers) Alternative to Note There is no need to set the subscription id.
| |