|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.curjent.impl.agent.Messenger
final class Messenger
Background thread processor. The Executor
for the agent is given a
runnable messenger to run. Delegates all work from individual background
threads to the central Controller
.
Field Summary | |
---|---|
(package private) Controller |
controller
The messenger's controller. |
(package private) Message |
message
Current executing message for this messenger. |
(package private) Object |
task
The acquired AgentTasks instance that performs the call. |
(package private) Thread |
thread
Current thread running this messenger. |
Constructor Summary | |
---|---|
Messenger(Controller controller,
Object task)
Saves the controller and task for executing messages. |
Method Summary | |
---|---|
void |
run()
Calls Controller.run(Messenger) . |
String |
toString()
Returns a summary of the message that's executing if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
final Controller controller
final Object task
AgentTasks
instance that performs the call.
Thread thread
Message message
Constructor Detail |
---|
Messenger(Controller controller, Object task)
Method Detail |
---|
public void run()
Controller.run(Messenger)
.
run
in interface Runnable
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |