|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simoes.lpd.util.PrintQueue
The PrintQueue is just a queue that only accepts print jobs still need to figure out how the events get sent
Field Summary | |
protected Lock |
lock
|
protected Queue |
queue
|
Constructor Summary | |
PrintQueue(java.lang.String name)
constructor. |
Method Summary | |
long |
add(PrintJob printJob)
add print job to queue. |
void |
closeQueue()
|
Lock |
getLock()
|
QueuedPrintJob |
getNextPrintJob()
Gets the next PrintJob without removing it. |
java.util.List |
list()
list items in queue. |
PrintJob |
remove(long id)
remove print job from queue. |
int |
removeAll()
remove all print jobs from queue. |
int |
size()
size of the print queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Lock lock
protected Queue queue
Constructor Detail |
public PrintQueue(java.lang.String name)
name
- - name of the print queue.Method Detail |
public Lock getLock()
public long add(PrintJob printJob)
public PrintJob remove(long id) throws ObjectNotFoundException
ObjectNotFoundException
public QueuedPrintJob getNextPrintJob() throws ObjectNotFoundException
ObjectNotFoundException
public int removeAll()
public int size()
public java.util.List list()
java.lang.ClassCastException
- if queue contains non print jobs.public void closeQueue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |