Gregory Koronakos c504f94705 rank node candidates
Change-Id: I260f8105cdd675d9475a9179149a445c4f56fa17
2024-03-20 01:27:00 +02:00

22 lines
466 B
Python

from proton import Link as pLink
class Link:
fqdn=False
context=None
def __init__(self, key, address, topic=False, fqdn=False):
super().__init__()
self.key = key
self.address = address
self.topic= topic
self.fqdn= fqdn
self._link = None
def set(self, link:pLink):
# The proton container creates a sender
# so we just use composition instead of extension
self._link = link