|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
Specifies "connection" behavior: in this case, connections that send and receive objects over the wire.
| Method Summary | |
|---|---|
void |
close()
Closes this connection. |
ServerAddress |
getServerAddress()
Returns "address" of the server with which this connection communicates. |
java.lang.Object |
receive()
Receives an object from the server with which this connection communicates. |
void |
send(java.lang.Object o)
Sends the given object to the server with which this connection communicates. |
| Method Detail |
|---|
void send(java.lang.Object o)
throws java.io.IOException,
java.rmi.RemoteException
an - Object.
java.io.IOException
java.rmi.RemoteException
java.lang.Object receive()
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.rmi.RemoteException
Object.
java.io.IOException
java.lang.ClassNotFoundException
java.rmi.RemoteExceptionvoid close()
ServerAddress getServerAddress()
ServerAddress.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||