ConnectionHandlingStompSession.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile boolean | |
| private final StompHeaders | |
| private volatile TcpConnection | |
| private MessageConverter | |
| public static final byte[] | EMPTY_PAYLOAD
An empty payload. |
| private static final Message | |
| private static final long | |
| private static final IdGenerator | |
| private static final Log | |
| private final Map | |
| private final AtomicInteger | |
| private long | |
| private final CompletableFuture | |
| private final StompSessionHandler | |
| private final String | |
| private final AtomicInteger | |
| private final Map | |
| private TaskScheduler | |
| private volatile String |
| Access | Constructor and Description |
|---|---|
| public | DefaultStompSession(StompSessionHandler
the application handler for the session sessionHandler, StompHeaders headers for the STOMP CONNECT frame connectHeaders)Create a new session. |
| Modifier and Type | Method and Description |
|---|---|
| public StompSession. | acknowledge(String
the id of the message messageId, boolean whether the message was consumed or not consumed)Implements org. |
| public StompSession. | acknowledge(StompHeaders
the headers for the ACK or NACK message frame headers, boolean whether the message was consumed or not consumed)Implements org. acknowledge(String, boolean) with
full StompHeaders instead of just a messageId.
|
| public void | afterConnected(TcpConnection<byte[]>
the connection connection)Implements org. |
| public void | afterConnectFailure(Throwable
the exception ex)Implements org. |
| public void | afterConnectionClosed()
Implements org. |
| private String | |
| private StompHeaderAccessor | |
| private Message | |
| public void | disconnect()
Implements org. |
| public void | disconnect(StompHeaders
the headers for the disconnect message frame headers)Implements org. disconnect() with headers.
|
| private void | |
| public StompHeaderAccessor | getConnectHeaders()
Implements org. |
| public MessageConverter | |
| public long | |
| public CompletableFuture | getSession()
Implements org. |
| public StompSessionHandler | |
| public String | getSessionId()
Implements org. |
| public TaskScheduler | |
| public void | handleFailure(Throwable
the exception ex)Implements org. |
| public void | handleMessage(Message<byte[]>
the message message)Implements org. |
| private void | |
| private void | |
| public boolean | |
| public boolean | isConnected()
Implements org. |
| private void | |
| public StompSession. | send(String
the destination to send a message to destination, Object the message payload payload)Implements org. byte[] with the help of a
MessageConverter.
|
| public StompSession. | send(StompHeaders
the message headers headers, Object the message payload payload)Implements org. send(String, Object) with full
StompHeaders instead of just a destination.
|
| public void | setAutoReceipt(boolean autoReceiptEnabled)
Implements org. send and subscribe operations on this session, which
causes the server to return a RECEIPT.
|
| public void | setMessageConverter(MessageConverter
the message converter to use messageConverter)Set the |
| public void | setReceiptTimeLimit(long receiptTimeLimit)
Configure the time in milliseconds before a receipt expires. |
| public void | setTaskScheduler(TaskScheduler taskScheduler)
Configure the TaskScheduler to use for receipt tracking. |
| public StompSession. | subscribe(String
the destination to subscribe to destination, StompFrameHandler the handler for received messages handler)Implements org. StompFrameHandler.
|
| public StompSession. | subscribe(StompHeaders
the headers for the subscribed message frame headers, StompFrameHandler the handler for received messages handler)Implements org. subscribe(String, StompFrameHandler)
with full StompHeaders instead of just a destination.
|
| private void |