public class GlxRemoteChannel<Message>
extends java.lang.Object
implements co.paralleluniverse.strands.channels.SendPort<Message>, java.io.Serializable
| Constructor and Description |
|---|
GlxRemoteChannel(co.paralleluniverse.strands.channels.SendPort<Message> channel,
java.lang.Object globalId)
Used on the creating (receiving) side
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object obj) |
short |
getOwnerNodeId() |
int |
hashCode() |
protected java.lang.Object |
readResolve() |
void |
send(Message message) |
boolean |
send(Message message,
long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
trySend(Message message) |
public GlxRemoteChannel(co.paralleluniverse.strands.channels.SendPort<Message> channel, java.lang.Object globalId)
channel - public short getOwnerNodeId()
public void send(Message message) throws co.paralleluniverse.fibers.SuspendExecution
send in interface co.paralleluniverse.strands.channels.SendPort<Message>co.paralleluniverse.fibers.SuspendExecutionpublic boolean send(Message message, long timeout, java.util.concurrent.TimeUnit unit) throws co.paralleluniverse.fibers.SuspendExecution, java.lang.InterruptedException
send in interface co.paralleluniverse.strands.channels.SendPort<Message>co.paralleluniverse.fibers.SuspendExecutionjava.lang.InterruptedExceptionpublic boolean trySend(Message message)
trySend in interface co.paralleluniverse.strands.channels.SendPort<Message>public void close()
close in interface co.paralleluniverse.strands.channels.SendPort<Message>close in interface java.lang.AutoCloseablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected java.lang.Object readResolve()
throws java.io.ObjectStreamException,
co.paralleluniverse.fibers.SuspendExecution
java.io.ObjectStreamExceptionco.paralleluniverse.fibers.SuspendExecution