Package ca.uhn.hl7v2.protocol
Interface StreamSource
- All Known Implementing Classes:
ClientSocketStreamSource,ServerSocketStreamSource,SocketStreamSource
public interface StreamSource
A source of input and output streams for use with stream-based
TransportLayers. Implementations should contain the
necessary information for reconnecting streams as necessary. For
example a ServerSocket-based implementation should be able to listen
for fresh connections and get new streams from them (this must be
done when refresh() is called).- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:38 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Gets new streams.voidCloses streams and underlying connections.
-
Method Details
-
connect
Gets new streams. This should be called only if one of the streams is dead.- Throws:
TransportException
-
disconnect
Closes streams and underlying connections.- Throws:
TransportException
-
getOutboundStream
- Returns:
- the stream to which we write outbound messages.
- Throws:
TransportException
-
getInboundStream
- Returns:
- the stream to which we expect the remote server to send messages.
- Throws:
TransportException
-