public void putWSIncomingMessage(PartnerTrack head, IncomingMessage message) throws InterruptedException { fIncomingBlackboard.putObject(head, message); }
public void putWSOutgoingMessageSent(OutgoingMessage message) throws InterruptedException { fSentBlackBoard.putObject(message, true); }
/** * Sends back a message as an answer to a previously-received incoming message via {@link * #receiveMessage(PartnerTrack)}. The message will be sent back using the still-open HTTP * Connection. * * <p>This call will not return until either the message has been delivered, or a timeout has * occurred, or the thread was interrupted. * * @param partnerTrack * @param message * @throws TimeoutException * @throws InterruptedException */ public void sendBackMessage(PartnerTrack partnerTrack, OutgoingMessage message) throws TimeoutException, InterruptedException { fOutgoingBlackboard.putObject(partnerTrack, message); fSentBlackBoard.getObject(message); }