Package org.apache.catalina.ha.backend
Interface Sender
-
- All Known Implementing Classes:
MultiCastSender,TcpSender
public interface SenderInterface to send data to proxies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinit(HeartbeatListener config)Set the configuration parametersintsend(java.lang.String mess)Send the message to the proxies
-
-
-
Method Detail
-
init
void init(HeartbeatListener config) throws java.lang.Exception
Set the configuration parameters- Parameters:
config- The heartbeat listener configuration- Throws:
java.lang.Exception- An error occurred
-
send
int send(java.lang.String mess) throws java.lang.Exception
Send the message to the proxies- Parameters:
mess- The message that will be sent- Returns:
0if no error occurred,-1otherwise- Throws:
java.lang.Exception- An error occurred
-
-