public interface StreamSource
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).| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Gets new streams.
|
void |
disconnect()
Closes streams and underlying connections.
|
InputStream |
getInboundStream() |
OutputStream |
getOutboundStream() |
void connect() throws TransportException
TransportExceptionvoid disconnect() throws TransportException
TransportExceptionOutputStream getOutboundStream() throws TransportException
TransportExceptionInputStream getInboundStream() throws TransportException
TransportExceptionCopyright © 2001–2017 University Health Network. All rights reserved.