| Modifier and Type | Field and Description | 
|---|---|
| protected BufferedReader[] | connectionReaders | 
| protected Socket[] | connectionsActive connections. | 
| protected BufferedWriter[] | connectionWriters | 
| protected Proxy[] | proxiesProxies. | 
| Constructor and Description | 
|---|
| TcpSender() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | close(int i)Close connection. | 
| void | init(HeartbeatListener config)Set the configuration parameters | 
| int | send(String mess)Send the message to the proxies | 
protected Proxy[] proxies
protected Socket[] connections
protected BufferedReader[] connectionReaders
protected BufferedWriter[] connectionWriters
public void init(HeartbeatListener config) throws Exception
Senderpublic int send(String mess) throws Exception
Senderprotected void close(int i)
i - The index of the connection that will be closedCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.