Modifier and Type | Field and Description |
---|---|
protected BufferedReader[] |
connectionReaders |
protected Socket[] |
connections
Active connections.
|
protected BufferedWriter[] |
connectionWriters |
protected Proxy[] |
proxies
Proxies.
|
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
Sender
public int send(String mess) throws Exception
Sender
protected void close(int i)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.