Sender (Apache Tomcat 10.1.55 API Documentation)
Description: declaration: package: org.apache.catalina.ha.backend, interface: Sender

# Interface Sender

All Known Implementing Classes:
  `MultiCastSender, TcpSender`

public interface Sender
Interface to send data to proxies.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `init(HeartbeatListener config)`
  Set the configuration parameters
  `int`
  `send(String mess)`
  Send the message to the proxies

- ## Method Details

  - ### init

    void init(HeartbeatListener config) throws Exception
    Set the configuration parameters
    Parameters:
      `config` - The heartbeat listener configuration
    Throws:
      `Exception` - An error occurred

  - ### send

    int send(String mess) throws Exception
    Send the message to the proxies
    Parameters:
      `mess` - The message that will be sent
    Returns:
      `0` if no error occurred, `-1` otherwise
    Throws:
      `Exception` - An error occurred