public interface Stream
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this stream.
|
Circuit |
getCircuit()
Returns the
Circuit this stream belongs to. |
InputStream |
getInputStream()
Returns an
InputStream for sending data on this stream. |
OutputStream |
getOutputStream()
Returns an
OutputStream for receiving data from this stream. |
int |
getStreamId()
Returns the stream id value of this stream.
|
CircuitNode |
getTargetNode() |
void |
waitForSendWindow()
If the circuit and stream level packaging windows are open for this stream
this method returns immediately, otherwise it blocks until both windows are
open or the stream is closed.
|
Circuit getCircuit()
Circuit this stream belongs to.Circuit this stream belongs to.int getStreamId()
CircuitNode getTargetNode()
void close()
InputStream getInputStream()
InputStream for sending data on this stream.InputStream for transferring data on this stream.OutputStream getOutputStream()
OutputStream for receiving data from this stream.OutputStream for receiving data from this stream.void waitForSendWindow()
Copyright © 2015. All rights reserved.