Package qpid :: Module queue :: Class Queue
[frames] | no frames]

Class Queue

Queue.Queue --+
              |
             Queue
Known Subclasses:

Instance Methods
 
__init__(self, *args, **kwargs)
 
close(self, error=None)
 
get(self, block=True, timeout=None)
Remove and return an item from the queue.
 
listen(self, listener, exc_listener=None)
 
run(self)

Inherited from Queue.Queue: empty, full, get_nowait, join, put, put_nowait, qsize, task_done

Class Variables
  END = object()
  STOP = object()
Method Details

__init__(self, *args, **kwargs)
(Constructor)

 
Overrides: Queue.Queue.__init__

get(self, block=True, timeout=None)

 

Remove and return an item from the queue.

If optional args 'block' is true and 'timeout' is None (the default), block if necessary until an item is available. If 'timeout' is a positive number, it blocks at most 'timeout' seconds and raises the Empty exception if no item was available within that time. Otherwise ('block' is false), return an item if one is immediately available, else raise the Empty exception ('timeout' is ignored in that case).

Overrides: Queue.Queue.get
(inherited documentation)