public interface StreamSource
TransportLayer
s. 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
TransportException
void disconnect() throws TransportException
TransportException
OutputStream getOutboundStream() throws TransportException
TransportException
InputStream getInboundStream() throws TransportException
TransportException
Copyright © 2001–2017 University Health Network. All rights reserved.