跳转到正文

bus_sources API ​

完整接口目录 · 插件运行时用法 · 工具包下载

模块说明 ​

text
Worker-owned online sources and callbacks, sealed and actually joined on exit.

BusSubscriptionError ​

python
class BusSubscriptionError(BusError)

BusSubscriptionError.__init__ ​

python
def __init__(self, reason, *, gap=False)

BusSubscriptionError.reason ​

python
self.reason

公开实例属性,在 __init__ 中设置。

BusSubscriptionError.gap ​

python
self.gap

公开实例属性,在 __init__ 中设置。

BusSubscription ​

python
class BusSubscription

SDK 说明:

text
One bounded short-poll subscription; caller owns serial consumption.

BusSubscription.__init__ ​

python
def __init__(self, bus, registration)

BusSubscription.open ​

python
async def open(self)

BusSubscription.__aiter__ ​

python
def __aiter__(self)

BusSubscription.__anext__ ​

python
async def __anext__(self)

BusSubscription.close ​

python
async def close(self)

BusSubscription.bus ​

python
self.bus

公开实例属性,在 __init__ 中设置。

BusSubscription.registration ​

python
self.registration

公开实例属性,在 __init__ 中设置。

BusSubscription.handle ​

python
self.handle

公开实例属性,在 __init__、close 中设置。

BusSubscription.buffer ​

python
self.buffer

公开实例属性,在 __init__ 中设置。

BusSubscription.terminal ​

python
self.terminal

公开实例属性,在 __init__、_batch 中设置。

BusSubscription.gap ​

python
self.gap

公开实例属性,在 __init__、_batch 中设置。

BusSubscription.closed ​

python
self.closed

公开实例属性,在 __init__、close 中设置。

SourceOwner ​

python
class SourceOwner

SDK 说明:

text
Separate bounded owner for all stream drivers; TaskOwner.open cannot start it.

SourceOwner.__init__ ​

python
def __init__(self, bus, context=None, on_failure=None, *, max_callbacks=4)

SourceOwner.states ​

python
@property
def states(self)

SourceOwner.statuses ​

python
@property
def statuses(self)

SourceOwner.enabled ​

python
@property
def enabled(self)

SourceOwner.check ​

python
def check(self)

SourceOwner.start ​

python
def start(self, *, run_token, resume=False)

SourceOwner.seal ​

python
def seal(self)

SourceOwner.begin_join ​

python
def begin_join(self)

SourceOwner.join ​

python
async def join(self)

SourceOwner.complete_drain ​

python
def complete_drain(self)

SourceOwner.bus ​

python
self.bus

公开实例属性,在 __init__ 中设置。

SourceOwner.context ​

python
self.context

公开实例属性,在 __init__ 中设置。

SourceOwner.state ​

python
self.state

公开实例属性,在 __init__、start、seal、_failed、complete_drain 中设置。

Neomega · 使用、开发与参考文档