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 aSENDsf.frame(). If theSENDframe specifies a transaction, the message delivery is postponed until the transaction commit. The handler computes theMESSAGEframe from theSENDsf.frame(). It computes amessage-idandackid if needed. If requested theRECEIPTframe is sent once theMESSAGEframe has been sent to all matching subscriptions. If theSENDframe requires an acknowledgment, themessage-idis 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 voidhandle(ServerFrame sf)Something has happened, so handle it.
-
-
-
Method Detail
-
handle
public void handle(ServerFrame sf)
Description copied from interface:HandlerSomething has happened, so handle it.- Specified by:
handlein interfaceHandler<ServerFrame>- Parameters:
sf- the event to handle
-
-