Package org.apache.catalina.ha.backend
Class TcpSender
java.lang.Object
org.apache.catalina.ha.backend.TcpSender
- All Implemented Interfaces:
Sender
TCP-based sender for sending heartbeat messages to proxy servers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BufferedReader[]Readers for active connections.protected Socket[]Active socket connections to proxies.protected BufferedWriter[]Writers for active connections.protected Proxy[]Proxies. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose(int i) Close connection.voidinit(HeartbeatListener config) Set the configuration parametersintSend the message to the proxies
-
Field Details
-
proxies
Proxies. -
connections
Active socket connections to proxies. -
connectionReaders
Readers for active connections. -
connectionWriters
Writers for active connections.
-
-
Constructor Details
-
TcpSender
public TcpSender()Constructs a new TcpSender.
-
-
Method Details