public interface Sender
Modifier and Type | Method and Description |
---|---|
void |
init(HeartbeatListener config)
Set the configuration parameters
|
int |
send(java.lang.String mess)
Send the message to the proxies
|
void init(HeartbeatListener config) throws java.lang.Exception
config
- The heartbeat listener configurationjava.lang.Exception
- An error occurredint send(java.lang.String mess) throws java.lang.Exception
mess
- The message that will be sent0
if no error occurred, -1
otherwisejava.lang.Exception
- An error occurredCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.