jacol.processor
Class LispQueue

java.lang.Object
  |
  +--jacol.processor.LispQueue

public class LispQueue
extends java.lang.Object

This class supports asynchronous lisp calls by maintaining a queue of lisp requests. Each queued request will be sequentially passed to the lisp interpreter, and the LispCaller will receive a callback once the call has completed.

Version:
0.20 beta
Author:
Jason Lowdermilk Email

Constructor Summary
protected LispQueue()
           
 
Method Summary
 void enqueue(java.lang.String expression, LispCaller caller)
          Add a request to the queue, and wake up the queue processor.
static LispQueue getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LispQueue

protected LispQueue()
Method Detail

getInstance

public static LispQueue getInstance()

enqueue

public void enqueue(java.lang.String expression,
                    LispCaller caller)
Add a request to the queue, and wake up the queue processor.
Parameters:
expression - a String representing a lisp expression
caller - the LispCaller to notify when done