java.lang.Object | |
↳ | sun.rmi.transport.tcp.TCPConnection |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Close the connection.
| |||||||||||
Returns the channel for this connection.
| |||||||||||
Gets the input stream for this connection.
| |||||||||||
Gets the output stream for this connection
| |||||||||||
Probes the connection to see if it still alive and connected to
a responsive server.
| |||||||||||
Determine if this connection can be used for multiple operations.
| |||||||||||
Release the input stream for this connection.
| |||||||||||
Release the output stream for this connection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Gets the output stream for this connection
IOException |
---|
Probes the connection to see if it still alive and connected to a responsive server. If the connection has been idle for too long, the server is pinged. ``Too long'' means ``longer than the last ping round-trip time''.
This method may misdiagnose a dead connection as live, but it will never misdiagnose a live connection as dead.
Determine if this connection can be used for multiple operations. If the socket implements RMISocketInfo, then we can query it about this; otherwise, assume that it does provide a full-duplex persistent connection like java.net.Socket.
Release the input stream for this connection.
Release the output stream for this connection.
IOException |
---|