org.brains2b.coffee
Class TicketQueue
java.lang.Object
org.brains2b.coffee.TicketQueue
- All Implemented Interfaces:
- java.util.Comparator, TicketHandler
public class TicketQueue
- extends java.lang.Object
- implements java.util.Comparator, TicketHandler
[Short description]
[Long description]
- Version:
- $Revision: 1.7 $ $Date: 2010/07/05 00:31:15 $
- Author:
- dennis@brains2b.nl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
TicketQueue
public TicketQueue()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare in interface java.util.Comparator
add
public void add(Ticket t)
isEmpty
public boolean isEmpty()
iterator
public java.util.Iterator iterator()
getSize
public int getSize()
clear
public void clear()
get
public Ticket get(int index)
addProgressMonitor
public void addProgressMonitor(ProgressMonitor m)
- Specified by:
addProgressMonitor in interface TicketHandler
close
public void close()
throws java.lang.Exception
- Specified by:
close in interface TicketHandler
- Throws:
java.lang.Exception
getHandledEvents
public int[] getHandledEvents()
- Specified by:
getHandledEvents in interface TicketHandler
handleEvent
public NNTPMessage handleEvent(CoffeeEvent event)
throws CoffeeSpill
- Specified by:
handleEvent in interface TicketHandler
- Throws:
CoffeeSpill
isAvailable
public boolean isAvailable()
- Specified by:
isAvailable in interface TicketHandler
open
public void open()
throws java.lang.Exception
- Specified by:
open in interface TicketHandler
- Throws:
java.lang.Exception
removeProgressMonitor
public void removeProgressMonitor(ProgressMonitor m)
- Specified by:
removeProgressMonitor in interface TicketHandler
getList
public java.util.List getList()