def __init__(self, connstr=None, **kwargs):
        """
        Bucket subclass for Twisted. This inherits from the 'AsyncBucket' class,
        but also adds some twisted-specific logic for hooking on a connection.
        """
        if connstr and "connstr" not in kwargs:
            kwargs["connstr"] = connstr
        iops = v0Iops(reactor)
        super(RawBucket, self).__init__(iops=iops, **kwargs)

        self._evq = {"connect": ConnectionEventQueue(), "_dtor": TxEventQueue()}

        self._conncb = self._evq["connect"]
        self._dtorcb = self._evq["_dtor"]
    def __init__(self, **kwargs):
        """
        Connection subclass for Twisted. This inherits from the 'Async' class,
        but also adds some twisted-specific logic for hooking on a connection.
        """

        experimental.enabled_or_raise()

        iops = v0Iops(reactor)
        super(TxAsyncConnection, self).__init__(iops=iops, **kwargs)

        self._evq = {"connect": ConnectionEventQueue(), "_dtor": TxEventQueue()}

        self._conncb = self._evq["connect"]
        self._dtorcb = self._evq["_dtor"]
Exemple #3
0
    def __init__(self, **kwargs):
        """
        Connection subclass for Twisted. This inherits from the 'Async' class,
        but also adds some twisted-specific logic for hooking on a connection.
        """

        iops = v0Iops(reactor)
        super(TxAsyncConnection, self).__init__(iops=iops, **kwargs)

        self._evq = {
            'connect': ConnectionEventQueue(),
            '_dtor': TxEventQueue()
        }

        self._conncb = self._evq['connect']
        self._dtorcb = self._evq['_dtor']
    def __init__(self, **kwargs):
        """
        Connection subclass for Twisted. This inherits from the 'Async' class,
        but also adds some twisted-specific logic for hooking on a connection.
        """

        iops = v0Iops(reactor)
        super(TxAsyncConnection, self).__init__(iops=iops, **kwargs)

        self._evq = {
            'connect': ConnectionEventQueue(),
            '_dtor': TxEventQueue()
        }

        self._conncb = self._evq['connect']
        self._dtorcb = self._evq['_dtor']
    def __init__(self, connstr=None, **kwargs):
        """
        Bucket subclass for Twisted. This inherits from the 'AsyncBucket' class,
        but also adds some twisted-specific logic for hooking on a connection.
        """
        if connstr and 'connstr' not in kwargs:
            kwargs['connstr'] = connstr
        iops = v0Iops(reactor)
        super(RawBucket, self).__init__(iops=iops, **kwargs)

        self._evq = {
            'connect': ConnectionEventQueue(),
            '_dtor': TxEventQueue()
        }

        self._conncb = self._evq['connect']
        self._dtorcb = self._evq['_dtor']