Package org.apache.catalina.ha.backend
Class TcpSender
- java.lang.Object
- 
- org.apache.catalina.ha.backend.TcpSender
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.io.BufferedReader[]connectionReadersprotected java.net.Socket[]connectionsActive connections.protected java.io.BufferedWriter[]connectionWritersprotected Proxy[]proxiesProxies.
 - 
Constructor SummaryConstructors Constructor Description TcpSender()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose(int i)Close connection.voidinit(HeartbeatListener config)Set the configuration parametersintsend(java.lang.String mess)Send the message to the proxies
 
- 
- 
- 
Field Detail- 
proxiesprotected Proxy[] proxies Proxies.
 - 
connectionsprotected java.net.Socket[] connections Active connections.
 - 
connectionReadersprotected java.io.BufferedReader[] connectionReaders 
 - 
connectionWritersprotected java.io.BufferedWriter[] connectionWriters 
 
- 
 - 
Method Detail- 
initpublic void init(HeartbeatListener config) throws java.lang.Exception Description copied from interface:SenderSet the configuration parameters
 - 
sendpublic int send(java.lang.String mess) throws java.lang.ExceptionDescription copied from interface:SenderSend the message to the proxies
 - 
closeprotected void close(int i) Close connection.- Parameters:
- i- The index of the connection that will be closed
 
 
- 
 
-