minos.networks.brokers.handlers.ports

Classes

BrokerHandlerService

Broker Handler Service class.

BrokerPort

Broker Port class.

class BrokerPort[source]

Bases: Port

Broker Port class.

__init__(**kwargs)[source]
handler

Get the service handler.

Returns

A Handler instance.

property context: aiomisc.context.Context
set_loop(loop)
Parameters

loop (AbstractEventLoop) –

Return type

None

async start()

Start the port execution.

Returns

This method does not return anything.

Return type

None

property start_event: asyncio.locks.Event
async stop(err=None)

Stop the port execution.

Parameters

err (Optional[Exception]) – Optional exception that stopped the execution.

Returns

This method does not return anything.

Return type

None

class BrokerHandlerService[source]

Bases: BrokerPort

Broker Handler Service class.

__init__(**kwargs)[source]
property context: aiomisc.context.Context
handler

Get the service handler.

Returns

A Handler instance.

set_loop(loop)
Parameters

loop (AbstractEventLoop) –

Return type

None

async start()

Start the port execution.

Returns

This method does not return anything.

Return type

None

property start_event: asyncio.locks.Event
async stop(err=None)

Stop the port execution.

Parameters

err (Optional[Exception]) – Optional exception that stopped the execution.

Returns

This method does not return anything.

Return type

None