public class DefaultSendHandler extends Object implements Handler<ServerFrame>
SEND
sf.frame().
If the SEND
frame specifies a transaction, the message delivery is postponed until the transaction commit.
The handler computes the MESSAGE
frame from the SEND
sf.frame(). It computes a message-id
and
ack
id if needed. If requested the RECEIPT
frame is sent once the MESSAGE
frame has been
sent to all matching subscriptions.
If the SEND
frame requires an acknowledgment, the message-id
is added to the list of messages
waiting for acknowledgment.
This handler is thread safe.Constructor and Description |
---|
DefaultSendHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(ServerFrame sf)
Something has happened, so handle it.
|
public void handle(ServerFrame sf)
Handler
handle
in interface Handler<ServerFrame>
sf
- the event to handleCopyright © 2024 Eclipse. All rights reserved.