groovyx.gpars.actor.impl
Class ReplyCategory

java.lang.Object
  extended by groovyx.gpars.actor.impl.ReplyCategory

public final class ReplyCategory
extends java.lang.Object

Enhances objects with the ability to send replies and detect message originators.


Constructor Summary
private ReplyCategory()
           
 
Method Summary
static MessageStream getSender(java.lang.Object original)
          Retrieves the originator of a message
static void reply(java.lang.Object original, java.lang.Object reply)
           
static void replyIfExists(java.lang.Object original, java.lang.Object reply)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplyCategory

private ReplyCategory()
Method Detail

getSender

public static MessageStream getSender(java.lang.Object original)
Retrieves the originator of a message

Parameters:
original - The message to detect the originator of
Returns:
The message originator

reply

public static void reply(java.lang.Object original,
                         java.lang.Object reply)

replyIfExists

public static void replyIfExists(java.lang.Object original,
                                 java.lang.Object reply)

Copyright © 2008–2010 Václav Pech. All Rights Reserved.