Interface SendOperation


public interface SendOperation
Operations for sending Message to a destination.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> void
    send(String destination, org.springframework.messaging.Message<T> message)
    Send a Message to the given destination synchronously.
    <T> Mono<Void>
    sendAsync(String destination, org.springframework.messaging.Message<T> message)
    Send a Message to the given destination asynchronously.
  • Method Details

    • sendAsync

      <T> Mono<Void> sendAsync(String destination, org.springframework.messaging.Message<T> message)
      Send a Message to the given destination asynchronously.
      Type Parameters:
      T - payload class in message
      Parameters:
      destination - destination
      message - message
      Returns:
      Mono Void
    • send

      default <T> void send(String destination, org.springframework.messaging.Message<T> message)
      Send a Message to the given destination synchronously.
      Type Parameters:
      T - payload class in message
      Parameters:
      destination - destination
      message - message