Class TcpSender
java.lang.Object
org.apache.catalina.ha.backend.TcpSender
- All Implemented Interfaces:
Sender
-
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
-
init
-
send
-
close
protected void close(int i) Close connection.- Parameters:
i- The index of the connection that will be closed
-