minos.networks.brokers.handlers.entries module¶
- class minos.networks.brokers.handlers.entries.BrokerHandlerEntry(id, topic, partition, data_bytes, retry=0, created_at=None, updated_at=None, data_cls=<class 'minos.common.model.abc.Model'>, callback_lookup=None, exception=None)[source]¶
Bases:
Generic
[minos.networks.brokers.handlers.entries.T
]Handler Entry class.
- __init__(id, topic, partition, data_bytes, retry=0, created_at=None, updated_at=None, data_cls=<class 'minos.common.model.abc.Model'>, callback_lookup=None, exception=None)[source]¶
- callback¶
Get the callback if lookup is provided.
- Returns
A Callable object or None.
- data¶
Get the data.
- Returns
A
Model
inherited instance.
- property success: bool¶
Check if the entry is in success state or not
- Return type
bool
- Returns
A boolean value.