public class GlxRemoteChannel<Message> extends Object implements co.paralleluniverse.strands.channels.SendPort<Message>, Serializable
| Constructor and Description |
|---|
GlxRemoteChannel(co.paralleluniverse.strands.channels.SendPort<Message> channel,
Object globalId)
Used on the creating (receiving) side
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(Throwable t) |
boolean |
equals(Object obj) |
GlxGlobalChannelId |
getId() |
int |
hashCode() |
protected Object |
readResolve() |
void |
send(Message message) |
boolean |
send(Message message,
long timeout,
TimeUnit unit) |
boolean |
send(Message message,
co.paralleluniverse.strands.Timeout timeout) |
boolean |
trySend(Message message) |
public GlxGlobalChannelId getId()
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, TimeUnit unit) throws co.paralleluniverse.fibers.SuspendExecution, InterruptedException
send in interface co.paralleluniverse.strands.channels.SendPort<Message>co.paralleluniverse.fibers.SuspendExecutionInterruptedExceptionpublic boolean send(Message message, co.paralleluniverse.strands.Timeout timeout) throws co.paralleluniverse.fibers.SuspendExecution, InterruptedException
send in interface co.paralleluniverse.strands.channels.SendPort<Message>co.paralleluniverse.fibers.SuspendExecutionInterruptedExceptionpublic boolean trySend(Message message)
trySend in interface co.paralleluniverse.strands.channels.SendPort<Message>public void close()
close in interface co.paralleluniverse.strands.channels.PortAutoCloseableclose in interface AutoCloseablepublic void close(Throwable t)
close in interface co.paralleluniverse.strands.channels.SendPort<Message>protected Object readResolve() throws ObjectStreamException, co.paralleluniverse.fibers.SuspendExecution
ObjectStreamExceptionco.paralleluniverse.fibers.SuspendExecution