Package io.vertx.ext.stomp
Class DefaultSendHandler
- java.lang.Object
-
- io.vertx.ext.stomp.DefaultSendHandler
-
- All Implemented Interfaces:
Handler<ServerFrame>
public class DefaultSendHandler extends Object implements Handler<ServerFrame>
STOMP compliant actions executed when receiving aSEND
sf.frame(). If theSEND
frame specifies a transaction, the message delivery is postponed until the transaction commit. The handler computes theMESSAGE
frame from theSEND
sf.frame(). It computes amessage-id
andack
id if needed. If requested theRECEIPT
frame is sent once theMESSAGE
frame has been sent to all matching subscriptions. If theSEND
frame requires an acknowledgment, themessage-id
is added to the list of messages waiting for acknowledgment. This handler is thread safe.- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description DefaultSendHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(ServerFrame sf)
Something has happened, so handle it.
-
-
-
Method Detail
-
handle
public void handle(ServerFrame sf)
Description copied from interface:Handler
Something has happened, so handle it.- Specified by:
handle
in interfaceHandler<ServerFrame>
- Parameters:
sf
- the event to handle
-
-