public interface IMessageSender
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
initReceiver()
Initialize the receiver.
|
IMessage |
receiveMessage()
Will return null or throw EOFException when the connection has been severed.
|
void |
sendAck() |
void |
sendMessage(IMessage message) |
void |
sendStop() |
void |
shutDown() |
void |
stopReceiver()
Stop the receiver.
|
void connect() throws java.io.IOException
java.io.IOException
void initReceiver() throws java.net.SocketTimeoutException
java.net.SocketException
- This exception will be thrown if a connection
to the remote TestNG instance could not be established after ten
seconds.java.net.SocketTimeoutException
void stopReceiver()
void sendMessage(IMessage message) throws java.lang.Exception
java.lang.Exception
IMessage receiveMessage() throws java.lang.Exception
java.lang.Exception
void shutDown()
void sendAck()
void sendStop()