def qsize(self, qname):
        """Return the approximate size of the queue."""
        if qname in self._queues:
            return self._queues[qname].qsize()
        else:
            raise ValueError(_("queue %s is not defined"), qname)