public class

TCPChannel

extends Object
implements Channel
java.lang.Object
   ↳ sun.rmi.transport.tcp.TCPChannel

Class Overview

TCPChannel is the socket-based implementation of the RMI Channel abstraction.

Summary

Public Methods
void free(Connection conn, boolean reuse)
Free the connection generated by this channel.
Endpoint getEndpoint()
Return the endpoint for this channel.
Connection newConnection()
Supplies a connection to the endpoint of the address space for which this is a channel.
void shedCache()
Closes all the connections in the cache, whether timed out or not.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.rmi.transport.Channel

Public Methods

public void free (Connection conn, boolean reuse)

Free the connection generated by this channel.

Parameters
conn The connection
reuse If true, the connection is in a state in which it can be reused for another method call.

public Endpoint getEndpoint ()

Return the endpoint for this channel.

public Connection newConnection ()

Supplies a connection to the endpoint of the address space for which this is a channel. The returned connection may be one retrieved from a cache of idle connections.

public void shedCache ()

Closes all the connections in the cache, whether timed out or not.