Send cluster messages with only one socket. Ack and keep Alive Handling is
supported
author: Peter Rossbach author: Filip Hanik version: $Revision: 532608 $ $Date: 2007-04-26 06:58:20 +0200 (jeu., 26 avr. 2007) $ since: 5.5.16
pushMessage(byte[] data, boolean reconnect, boolean waitForAck) Push messages with only one socket at a time
Wait for ack is needed and make auto retry when write message is failed.
waitForAck() Wait for Acknowledgement from other server
FIXME Please, not wait only for three charcters, better control that the wait ack message is correct.
Push messages with only one socket at a time
Wait for ack is needed and make auto retry when write message is failed.
After sending error close and reopen socket again.
After successfull sending update stats
WARNING: Subclasses must be very carefull that only one thread call this pushMessage at once!!!
See Also:BioSender.closeSocket() See Also:BioSender.openSocket() See Also:BioSender.writeData(ChannelMessage) Parameters: data - data to send since: 5.5.10
sendMessage
public void sendMessage(byte[] data, boolean waitForAck) throws IOException(Code)
Send message
See Also: org.apache.catalina.tribes.transport.IDataSender#sendMessage(, See Also: ChannelMessage)
Wait for Acknowledgement from other server
FIXME Please, not wait only for three charcters, better control that the wait ack message is correct.
Parameters: timeout - throws: java.io.IOException - throws: java.net.SocketTimeoutException -
Methods inherited from org.apache.catalina.tribes.transport.AbstractSender