|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.core.mipc.ObjectChannel
The ObjectChannel is associated with a MultiplexConnection. It makes it easy to read and write objects from/to a multiplex channel.
MultiplexConnection| Constructor Summary | |
ObjectChannel(java.lang.String label,
MultiplexConnectionIfc connection)
Creates a new ObjectChannel with the given name on the specified connection. |
|
| Method Summary | |
void |
close()
Close the channel |
MultiplexConnectionIfc |
getConnection()
Get the connection that this encapsulates |
java.lang.Object |
receive()
Receive an object from the underlying connection |
void |
send(java.io.Serializable object)
Send an object on the underlying connection |
java.lang.String |
toString()
Retrieve a unique id for this connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ObjectChannel(java.lang.String label,
MultiplexConnectionIfc connection)
label - the name of the multiplex channel to read/write from/to.connection - the underlying connection| Method Detail |
public void close()
throws java.io.IOException
close in interface IpcIfcjava.io.IOException
public void send(java.io.Serializable object)
throws java.io.IOException
send in interface IpcIfcobject - the object to send
java.io.IOException - if the object cannot be written to the output
stream.
public java.lang.Object receive()
throws java.lang.ClassNotFoundException,
java.io.IOException
receive in interface IpcIfcjava.io.IOException - if the object cannot be received
java.lang.ClassNotFoundException - If the class cannot be re-constituted.public java.lang.String toString()
toString in interface IpcIfcpublic MultiplexConnectionIfc getConnection()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||