org.codehaus.gpars

groovyx.gpars.actor.impl
Class ReplyCategory

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

@SuppressWarnings({"UtilityClass"})
class ReplyCategory

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
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

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.