org.curjent.test.agent.asmify
Class CopyMessage_Count
java.lang.Object
org.curjent.impl.agent.Message
org.curjent.test.agent.asmify.CopyMessage_Count
- All Implemented Interfaces:
- Awaiter
final class CopyMessage_Count
- extends Message
Field Summary |
(package private) int |
result
|
Method Summary |
protected void |
dispatch(Object queuedTask)
Delegates execution of the call to the subclass of this message. |
protected Object |
getResultValue()
Converts the task's result to an object. |
protected void |
setResultValue(Object value)
Implemented by generated message subtypes to unbox and save a result
value. |
Methods inherited from class org.curjent.impl.agent.Message |
await, await, await, clearDeadcheckRequest, deadcheck, getArgumentValue, getBlockingThreads, getCall, getController, isDeadcheckRequested, isExecuting, isSatisfied, lock, setArgumentValue, toString, unlock |
result
int result
CopyMessage_Count
CopyMessage_Count(CallInfo info)
dispatch
protected void dispatch(Object queuedTask)
throws Throwable
- Description copied from class:
Message
- Delegates execution of the call to the subclass of this message. The
agent's proxy creates the message and saves the call's parameters. Later,
the
Controller
calls the message's dispatch
method to execute the call. The message calls the task's method with the
previously saved parameters and saves the result. The message saves
parameters and results in its fields.
- Specified by:
dispatch
in class Message
- Throws:
Throwable
- Any exception thrown by the task's method.- See Also:
MessageFactory
getResultValue
protected Object getResultValue()
- Description copied from class:
Message
- Converts the task's result to an object. The subclass of this message
returns a boxed value for a primitive result (e.g.,
Boolean.valueOf(result)
for a boolean
result).
Non-primitive objects, including arrays, are returned unchanged.
null
is returned for void
return types.
- Overrides:
getResultValue
in class Message
setResultValue
protected void setResultValue(Object value)
- Description copied from class:
Message
- Implemented by generated message subtypes to unbox and save a result
value. This default implementation for
void
return types
does nothing. Subtype implementations throw an exception if
value
is the wrong type.
- Overrides:
setResultValue
in class Message
Copyright 2009-2011 Tom Landon
Apache License 2.0