def __init__(
        self, field, specification, optional=False, spec_filter=None, timeout=10
    ):
        """
        :param field: The injected field
        :param specification: The injected service specification
        :param optional: If true, this injection is optional
        :param spec_filter: An LDAP query to filter injected services upon
                            their properties
        :param timeout: Temporal timeout, in seconds (must be greater than 0)
        :raise TypeError: A parameter has an invalid type
        :raise ValueError: An error occurred while parsing the filter or an
                           argument is incorrect
        """
        super(Temporal, self).__init__(
            field, specification, False, optional, spec_filter, True
        )
        if timeout <= 0:
            _logger.warning(
                "@Temporal timeout must be greater than 0. "
                "Using default value."
            )
            self._timeout = 10
        else:
            self._timeout = timeout
def __init__ ( self , field , specification , optional = False , spec_filter = None , timeout = 10 ) : super ( Temporal , self ) . __init__ ( field , specification , False , optional , spec_filter , True ) if timeout <= 0 : _logger . warning ( "@Temporal timeout must be greater than 0. " "Using default value." ) self . _timeout = 10 else : self . _timeout = timeout
:param field: The injected field
        :param specification: The injected service specification
        :param optional: If true, this injection is optional
        :param spec_filter: An LDAP query to filter injected services upon
                            their properties
        :param timeout: Temporal timeout, in seconds (must be greater than 0)
        :raise TypeError: A parameter has an invalid type
        :raise ValueError: An error occurred while parsing the filter or an
                           argument is incorrect