|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /proc/self/root/usr/local/lib/python3.9/site-packages/kombu/__pycache__/ |
a
��Sh� � @ sj d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
dZdZG d d
� d
e
�ZG dd� d�Zd
S )z#Logical Clocks and Synchronization.� )�annotations)�islice)�
itemgetter)�Lock)�Any)�LamportClock� timetuplez0_lamport(clock={0}, timestamp={1}, id={2} {3!r})c @ s� e Zd ZdZdZdddddd d�d d
�Zdd�dd
�Zdd�dd�Zddd�dd�Zddd�dd�Z ddd�dd�Z
ddd�dd�Zee
d��Zee
d��Zee
d��Zee
d��ZdS ) r a` Tuple of event clock information.
Can be used as part of a heap to keep events ordered.
Arguments:
---------
clock (Optional[int]): Event clock value.
timestamp (float): Event UNIX timestamp value.
id (str): Event host id (e.g. ``hostname:pid``).
obj (Any): Optional obj to associate with this event.
� Nz
int | None�float�strr )�clock� timestamp�id�obj�returnc C s t �| ||||f�S �N)�tuple�__new__)�clsr r
r r r r �6/usr/local/lib/python3.9/site-packages/kombu/clocks.pyr s ztimetuple.__new__�r c C s
t j| � S r )�R_CLOCK�format��selfr r r �__repr__# s ztimetuple.__repr__r c C s t | �S r )r r r r r �__getnewargs__&