Class DualTransportConnector

java.lang.Object
ca.uhn.hl7v2.protocol.impl.DualTransportConnector

public class DualTransportConnector extends Object

A utility for connecting separate inbound and outbound TransortLayers in a manner that avoids deadlock.

It is not safe to call connect() on two TransportLayer in the same thread, because it blocks, and the remote system may be doing the same thing, but in the opposite order. This class provides a method that connects two layers in separate threads, and pends until they are both connected.

Version:
$Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
Author:
Bryan Tripp