< prev index next >

src/java.rmi/share/classes/sun/rmi/transport/Channel.java

Print this page




  25 package sun.rmi.transport;
  26 
  27 import java.rmi.RemoteException;
  28 
  29 public interface Channel {
  30 
  31     /**
  32      * Generates a new connection to the endpoint of the address space
  33      * for which this is a channel.
  34      */
  35     public Connection newConnection() throws RemoteException;
  36 
  37     /**
  38      * Returns the endpoint of the address space for which this is a
  39      * channel.
  40      */
  41     public Endpoint getEndpoint();
  42 
  43     /**
  44      * Free the connection generated by this channel.
  45      * @param c The connection
  46      * @param reuse If true, the connection is in a state in which it
  47      *        can be reused for another method call.
  48      */
  49     public void free(Connection conn, boolean reuse) throws RemoteException;
  50 }


  25 package sun.rmi.transport;
  26 
  27 import java.rmi.RemoteException;
  28 
  29 public interface Channel {
  30 
  31     /**
  32      * Generates a new connection to the endpoint of the address space
  33      * for which this is a channel.
  34      */
  35     public Connection newConnection() throws RemoteException;
  36 
  37     /**
  38      * Returns the endpoint of the address space for which this is a
  39      * channel.
  40      */
  41     public Endpoint getEndpoint();
  42 
  43     /**
  44      * Free the connection generated by this channel.
  45      * @param conn The connection.
  46      * @param reuse If true, the connection is in a state in which it
  47      *        can be reused for another method call.
  48      */
  49     public void free(Connection conn, boolean reuse) throws RemoteException;
  50 }
< prev index next >