Package io.vertx.ext.stomp
Class DefaultNackHandler
- java.lang.Object
-
- io.vertx.ext.stomp.DefaultNackHandler
-
- All Implemented Interfaces:
Handler<ServerFrame>
public class DefaultNackHandler extends Object implements Handler<ServerFrame>
STOMP compliant actions executed when receiving aNACKsf.frame(). It removes the acknowledges messages from the list of messages waiting for acknowledgment and trigger anStompServerHandler#onNack(Subscription, List)calls. If theNACKframe specifies a transaction id, the acknowledgment is delayed until the transaction commit. This handler is thread safe.- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description DefaultNackHandler()
-
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
-
-