public class Message
extends java.lang.Object
Constructor and Description |
---|
Message(ThreadId threadId,
boolean request,
java.lang.String objectId,
ITypeDescription type,
IMethodDescription method,
boolean synchronous,
XCurrentContext currentContext,
boolean abnormalTermination,
java.lang.Object result,
java.lang.Object[] arguments) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments()
Returns the arguments of a message.
|
XCurrentContext |
getCurrentContext()
Returns the current context of a request message.
|
IMethodDescription |
getMethod()
Returns the method description of a request message.
|
java.lang.String |
getObjectId()
Returns the object ID of a request message.
|
java.lang.Object |
getResult()
Returns the result of a reply message.
|
ThreadId |
getThreadId()
Returns the thread ID of the message.
|
ITypeDescription |
getType()
Returns the type of a request message.
|
boolean |
isAbnormalTermination()
Returns whether the reply message represents abnormal termination.
|
boolean |
isRequest()
Returns whether the message is a request or a reply.
|
boolean |
isSynchronous()
Returns whether the request message is synchronous.
|
public Message(ThreadId threadId, boolean request, java.lang.String objectId, ITypeDescription type, IMethodDescription method, boolean synchronous, XCurrentContext currentContext, boolean abnormalTermination, java.lang.Object result, java.lang.Object[] arguments)
public final ThreadId getThreadId()
Valid for all kinds of messages.
null
) thread IDpublic final boolean isRequest()
Valid for all kinds of messages.
true
for a request, false
for a replypublic final java.lang.String getObjectId()
Valid only for request messages.
null
) object ID for a request,
null
for a replypublic final ITypeDescription getType()
Valid only for request messages.
null
) type for a request, null
for a replypublic final IMethodDescription getMethod()
Valid only for request messages. The returned
IMethodDescription
is consistent with the type of the
message.
null
) method description for a request,
null
for a replypublic final boolean isSynchronous()
Valid only for request messages.
true
for a synchronous request, false
for an asynchronous request or a replypublic XCurrentContext getCurrentContext()
Valid only for request messages.
null
) for a
request, null
for a replypublic final boolean isAbnormalTermination()
Valid only for reply messages.
true
for a reply that represents abnormal
termination, false
for a reply that represents normal
termination or a requestpublic final java.lang.Object getResult()
Valid only for reply messages.
null
) return value for a reply that
represents normal termination, the (non-null
) exception for
a reply that represents abnormal termination, null
for a
requestpublic final java.lang.Object[] getArguments()
Valid only for request messages and reply messages that represent normal termination. Any returned array must not be modified.
null
for a paramterless function), the out and in&dash {
}out
arguments for a reply that represents normal termination (possibly
null
for a parameterless function), null
for a
reply that represents abnormal termination