[Isolate-interest] Links provide one-way synchronous communication
sutanu_g at yahoo.com
Fri May 20 14:42:12 EDT 2005
The current Link design allows it to be used as
unidirectional pipe only. This has a few obvious
consequences as the Link api shows.
public void send(LinkMessage message)
If the current isolate is not a sender on this Link,
an UnsupportedOperationException will be thrown.
public LinkMessage receive()
If the current isolate is not a receiver on this Link
an IllegalStateException will be thrown.
I think this makes using Link is a bit more complex as
each isolate needs to figure out whether it is the
sender or receiver for a given Link.
What is the rationale behind not making Link fully
bi-directional as Socket ? That way, both isolates can
use the same Link for send and receive.
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
More information about the Isolate-interest