org.curjent.impl.agent
Class SyntheticMessage

java.lang.Object
  extended by org.curjent.impl.agent.Message
      extended by org.curjent.impl.agent.SyntheticMessage
All Implemented Interfaces:
Awaiter

final class SyntheticMessage
extends Message

Message implementation for synthetic calls. All synthetic calls share the same message. Unlike standard generated messages, the task is not actually called when a synthetic message is dispatched.


Field Summary
 
Fields inherited from class org.curjent.impl.agent.Message
cachedResult, controller, info, mark, markerType, next, NOEXCEPTION, NORESULT, prev, queue, started, state, synthetic, timer
 
Constructor Summary
protected SyntheticMessage(CallInfo info)
          Saves the message's metadata.
 
Method Summary
protected  void dispatch(Object task)
          Empty implementation that does nothing.
 
Methods inherited from class org.curjent.impl.agent.Message
await, await, await, awaitPending, cancel, clearDeadcheckRequest, deadcheck, expire, finish, get, getArgument, getArgumentCount, getArgumentValue, getBlockingThreads, getCall, getCompletion, getController, getException, getResult, getResultValue, getState, isDeadcheckRequested, isExecuting, isFinished, isReentry, isSatisfied, lock, setArgument, setArgumentValue, setException, setReentry, setResult, setResultValue, setState, startable, toString, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyntheticMessage

protected SyntheticMessage(CallInfo info)
Saves the message's metadata.

Method Detail

dispatch

protected void dispatch(Object task)
                 throws Throwable
Empty implementation that does nothing.

Specified by:
dispatch in class Message
Throws:
Throwable - Any exception thrown by the task's method.
See Also:
MessageFactory


Copyright 2009-2011 Tom Landon
Apache License 2.0