org.curjent.impl.agent
Class Mark
java.lang.Object
org.curjent.impl.agent.Mark
final class Mark
- extends Object
Internal message context for markers. Markers include task methods annotated
with Marker
or Isolated
. The agent is initialized with an
initial Mark
. New messages are associated with this mark until a
marker message is added to the agent's queue. The new marker message is the
last message associated with the original mark. It becomes the terminal
message for the mark. At this point the agent replaces the original mark with
a new mark, and the cycle repeats. In the meantime, the original mark
continues to count down until all associated messages have finished
executing. At that point the agent knows it can execute the marker message as
appropriate.
- See Also:
Controller
Field Summary |
(package private) Count |
count
Number of messages associated with the mark, including the terminal
marker message if any. |
(package private) Mark |
next
Links to the next, newer mark. |
Constructor Summary |
Mark()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
count
Count count
- Number of messages associated with the mark, including the terminal
marker message if any.
next
Mark next
- Links to the next, newer mark.
Mark
Mark()
Copyright 2009-2011 Tom Landon
Apache License 2.0