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.IOExceptionvoid 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.SocketTimeoutExceptionvoid stopReceiver()
void sendMessage(IMessage message) throws java.lang.Exception
java.lang.ExceptionIMessage receiveMessage() throws java.lang.Exception
java.lang.Exceptionvoid shutDown()
void sendAck()
void sendStop()