faust.types.stores
¶
- class faust.types.stores.StoreT(url: Union[str, URL], app: _AppT, table: _CollectionT, *, table_name: str = '', key_type: Optional[_ModelArg] = None, value_type: Optional[_ModelArg] = None, key_serializer: Optional[Union[CodecT, str]] = '', value_serializer: Optional[Union[CodecT, str]] = '', options: Optional[Mapping[str, Any]] = None, **kwargs: Any)[source]¶
-
- app: _AppT¶
- table: _CollectionT¶
- abstract persisted_offset(tp: TP) Optional[int] [source]¶
- Return type:
_UnionGenericAlias
[int
,None
]
- abstract apply_changelog_batch(batch: Iterable[EventT], to_key: Callable[[Any], KT], to_value: Callable[[Any], VT]) None [source]¶
- Return type:
None
- abstract async on_rebalance(assigned: Set[TP], revoked: Set[TP], newly_assigned: Set[TP], generation_id: int = 0) None [source]¶
- Return type:
None
- abstract async on_recovery_completed(active_tps: Set[TP], standby_tps: Set[TP]) None [source]¶
- Return type:
None