|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbus.adapter.ToolBridge.ThreadLocalJobQueue
private class ToolBridge.ThreadLocalJobQueue
This job queue holds all the jobs that are posted by a certain thread.
Field Summary | |
---|---|
private boolean |
awaitingAck
|
private java.util.List<ToolBridge.Job> |
requests
|
Constructor Summary | |
---|---|
ToolBridge.ThreadLocalJobQueue()
Default constructor. |
Method Summary | |
---|---|
void |
acknowledge()
Acknowledges the last job that was send from the source the current thread is associated with. |
ToolBridge.Job |
getNext()
Returns the next job in the queue. |
void |
postEvent(aterm.ATerm aTerm,
long threadId)
Schedules the given event for transmission to the ToolBus. |
ToolBridge.Job |
postRequest(aterm.ATerm aTerm,
long threadId)
Schedules the given request for transmission to the ToolBus. |
aterm.ATermAppl |
waitForResponse(ToolBridge.Job job)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.List<ToolBridge.Job> requests
private boolean awaitingAck
Constructor Detail |
---|
public ToolBridge.ThreadLocalJobQueue()
Method Detail |
---|
public void postEvent(aterm.ATerm aTerm, long threadId)
aTerm
- The term that hold the details about the event.threadId
- The id of the thread associated with the event.public ToolBridge.Job postRequest(aterm.ATerm aTerm, long threadId)
aTerm
- The term that hold the details about the request.threadId
- The id of the thread associated with the request.
public aterm.ATermAppl waitForResponse(ToolBridge.Job job)
public ToolBridge.Job getNext()
public void acknowledge()
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |