|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.agent.AgentCore
@java.lang.SuppressWarningsprotected void handleMessage(final Object message) { public abstract class AgentCore
Field Summary | |
---|---|
private AsyncMessagingCore |
core
|
protected java.lang.Thread |
currentThread
|
private java.util.List |
errors
Adds the message to the agent\s message queue |
Constructor Summary | |
protected AgentCore()
|
Method Summary | |
---|---|
void
|
attachToThreadPool(Pool threadPool)
Informs about a new thread being assigned to process the next message |
void
|
call(java.lang.Object message)
Dynamically dispatches the method call |
java.util.List
|
getErrors()
Indicates whether there have been exception thrown within the agent's body. |
void
|
handleMessage(java.lang.Object message)
|
boolean
|
hasErrors()
|
boolean
|
isFair()
Makes the agent fair. |
void
|
leftShift(java.lang.Object message)
|
void
|
makeFair()
Adds the message to the agent\s message queue |
void
|
registerError(java.lang.Throwable e)
|
void
|
send(java.lang.Object message)
|
void
|
setPGroup(PGroup pGroup)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
private final AsyncMessagingCore core
protected java.lang.Thread currentThread
private java.util.List errors
message
- A value or a closure
Constructor Detail |
---|
protected AgentCore()
Method Detail |
---|
public final void attachToThreadPool(Pool threadPool)
@java.lang.SuppressWarnings* @param e The exception to store public final void call(java.lang.Object message)
message
- A value or a closure
@java.lang.SuppressWarnings({"SynchronizedMethod"}) public java.util.List getErrors()
void handleMessage(java.lang.Object message)
@java.lang.SuppressWarnings public boolean hasErrors()
public boolean isFair()
@java.lang.SuppressWarnings/** public final void leftShift(java.lang.Object message)
public void makeFair()
message
- A value or a closure
@java.lang.SuppressWarningstry { void registerError(java.lang.Throwable e)
public final void send(java.lang.Object message)
public void setPGroup(PGroup pGroup)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.