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 a `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.
  Author:
    Clement Escoffier

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultSendHandler()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(ServerFrame sf)` Something has happened, so handle it.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultSendHandler

          public DefaultSendHandler()

  - ### Method Detail

    - #### handle

          public void handle(ServerFrame sf)

      Description copied from interface: `Handler`
      Something has happened, so handle it.
      Specified by:
        `handle` in interface `Handler<ServerFrame>`
      Parameters:
        `sf` - the event to handle

Copyright © 2019 Eclipse. All rights reserved.