|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.engine.message.MessageContext
public class MessageContext
Information useful on invocation of remote networked events.
| Constructor Summary | |
|---|---|
MessageContext()
|
|
| Method Summary | |
|---|---|
static INode |
getSender()
Within the invocation on a remote method on an IRemote or an IChannelSubscriber, this method will return the node that originated the message. |
static void |
setSenderNodeForThread(INode node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageContext()
| Method Detail |
|---|
public static void setSenderNodeForThread(INode node)
public static INode getSender()
Will return null if the current thread is not currenlty executing a remote method of an IRemote or IChannelSubscrobor.
This is set by the server, and cannot be overwritten by the client, and can be used to verify where messages come from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||