Provides access to shared HL7 Connections. The ConnectionHub has at most one connection to any given address at any time.
Synchronization Note: This class should be safe to use in a multithreaded environment. A synchronization mutex is maintained for any given target host and port, so that if two threads are trying to connect to two separate destinations neither will block, but if two threads are trying to connect to the same destination, one will block until the other has finished trying. Use caution if this class is to be used in an environment where a very large (over 1000) number of target host/port destinations will be accessed at the same time.
@author Bryan Tripp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|