File: //usr/local/lib/python3.9/site-packages/kombu/transport/virtual/__pycache__/exchange.cpython-39.pyc
a
X>h � @ sr d Z ddlmZ ddlZddlmZ G dd� d�ZG dd� de�ZG d d
� d
e�ZG dd� de�Z eee d
�Z
dS )z�Virtual AMQ Exchange.
Implementations of the standard exchanges defined
by the AMQ protocol (excluding the `headers` exchange).
� )�annotationsN)�escape_regexc @ s4 e Zd ZdZdZdd� Zdd� Zdd� Zd d
� ZdS )�ExchangeTypez�Base class for exchanges.
Implements the specifics for an exchange type.
Arguments:
---------
channel (ChannelT): AMQ Channel.
Nc C s
|| _ d S �N)�channel)�selfr � r �J/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/exchange.py�__init__ s zExchangeType.__init__c C s t d��dS )z�Lookup all queues matching `routing_key` in `exchange`.
Returns
-------
str: queue name, or 'default' if no queues matched.
zsubclass responsibilityN)�NotImplementedError�r �table�exchange�routing_key�defaultr r r �lookup s zExchangeType.lookupc C s
|d|fS )z�Prepare queue-binding.
Returns
-------
Tuple[str, Pattern, str]: of `(routing_key, regex, queue)`
to be stored for bindings to this exchange.
Nr �r �queuer r � argumentsr r r �prepare_bind&