|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.serial.WithSerialId groovyx.gpars.actor.impl.MessageStream
public abstract class MessageStream extends WithSerialId
Represents a stream of messages and forms the base class for actors
Nested Class Summary | |
---|---|
static class |
MessageStream.RemoteMessageStream
|
private static class |
MessageStream.ResultWaiter
|
static class |
MessageStream.SendTo
|
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Fields inherited from class WithSerialId | |
---|---|
serialHandle, serialVersionUID |
Constructor Summary | |
MessageStream()
|
Method Summary | |
---|---|
MessageStream
|
call(java.lang.Object message)
|
java.lang.Class
|
getRemoteClass()
|
MessageStream
|
leftShift(java.lang.Object message)
|
static void
|
reInterrupt()
|
MessageStream
|
send(java.lang.Object message)
|
MessageStream
|
send()
|
MessageStream
|
send(java.lang.Object message, MessageStream replyTo)
Same as send |
java.lang.Object
|
sendAndWait(java.lang.Object message)
|
java.lang.Object
|
sendAndWait(java.lang.Object message, long timeout, java.util.concurrent.TimeUnit units)
Sends a message and waits for a reply. |
java.lang.Object
|
sendAndWait(java.lang.Object message, groovy.time.Duration duration)
|
Methods inherited from class WithSerialId | |
---|---|
createRemoteHandle, getOrCreateSerialHandle, getRemoteClass, writeReplace |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
MessageStream()
Method Detail |
---|
public final MessageStream call(java.lang.Object message)
@java.lang.Override* @paramThe type of expected reply message @java.lang.SuppressWarnings*/ public java.lang.Class getRemoteClass()
public final MessageStream leftShift(java.lang.Object message)
static void reInterrupt()
public MessageStream send(java.lang.Object message)
public final MessageStream send()
public final MessageStream send(java.lang.Object message, MessageStream replyTo)
message
- to send
public final java.lang.Object sendAndWait(java.lang.Object message)
public final java.lang.Object sendAndWait(java.lang.Object message, long timeout, java.util.concurrent.TimeUnit units)
message
- message to sendduration
- timeout
public final java.lang.Object sendAndWait(java.lang.Object message, groovy.time.Duration duration)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.