| package org.testng.remote.strprotocol; |
| |
| import java.io.IOException; |
| |
| public interface IMessageSender { |
| |
| void connect() throws IOException; |
| |
| void initReceiver(); |
| |
| void sendMessage(IMessage message) throws Exception; |
| |
| /** |
| * Will return null or throw EOFException when the connection has been severed. |
| */ |
| IMessage receiveMessage() throws Exception; |
| |
| void shutDown(); |
| |
| // These two methods should probably be in a separate class since they should all be |
| // the same for implementers of this interface. |
| void sendAck(); |
| |
| void sendStop(); |
| } |