net.grinder.communication
Interface BlockingSender

All Known Implementing Classes:
ClientSender

public interface BlockingSender

Interface for classes that manage the sending of messages.

Author:
Philip Aston

Nested Class Summary
static class BlockingSender.NoResponseException
          Exception indicating that the server chose to send no response back to a blockingSend(Message).
 
Method Summary
 Message blockingSend(Message message)
          Send the given message and await a response.
 void shutdown()
          Cleanly shut down the Sender.
 

Method Detail

blockingSend

Message blockingSend(Message message)
                     throws CommunicationException
Send the given message and await a response.

The input stream is implementation dependent. This should only be used where the sender can guarantee that the input stream will be free for exclusive use.

Parameters:
message - A Message.
Returns:
The response message.
Throws:
CommunicationException - If an error occurs.

shutdown

void shutdown()
Cleanly shut down the Sender.



Copyright © 2000-2013. All Rights Reserved.