QueueNull - object oriented interface to a null directory based queue.
A port of Perl module Directory::Queue::Null http://search.cpan.org/dist/Directory-Queue/ The documentation from Directory::Queue::Null module was adapted for Python.
QueueNull - null directory based queue.
Usage:
from dirq.QueueNull import QueueNull
# sample producer
dirq = QueueNull()
for count in range(1,101):
name = dirq.add("element %i\n" % count)
The goal of this module is to offer a “null” queue system using the same API as the other directory queue implementations. The queue will behave like a black hole: added data will disappear immediately so the queue will therefore always appear empty.
This can be used for testing purposes or to discard data like one would do on Unix by redirecting output to /dev/null.
Please refer to dirq.queue for general information about directory queues.
Konstantin Skaburskas <konstantin.skaburskas@gmail.com>
ASL 2.0
Copyright (C) CERN 2011-2013
QueueNull
Add data to the queue, this does nothing.
Add the given file (identified by its path) to the queue, this will therefore remove the file.
Add data to the queue, this does nothing.
Return the number of elements in the queue, which means it always return 0.
Not supported method.
Not supported method.
Not supported method.
Not supported method.
Purge the queue, this does nothing.
Not supported method.
Not supported method.