faust.types.tuples
¶
- class faust.types.tuples.ConsumerMessage(topic: str, partition: int, offset: int, timestamp: float, timestamp_type: int, headers: Optional[Union[List[Tuple[str, bytes]], Mapping[str, bytes]]], key: Optional[bytes], value: Optional[bytes], checksum: Optional[bytes], serialized_key_size: Optional[int] = None, serialized_value_size: Optional[int] = None, tp: Optional[TP] = None, time_in: Optional[float] = None, time_out: Optional[float] = None, time_total: Optional[float] = None, generation_id: Optional[int] = None)[source]¶
Message type used by Kafka Consumer.
- time_total: Optional[float]¶
Total processing time (in seconds), or None if the event is still processing.
- tp¶
- span¶
- class faust.types.tuples.FutureMessage(message: PendingMessage)[source]¶
- message: PendingMessage¶
- set_result(result: RecordMetadata) None [source]¶
Mark the future done and set its result.
If the future is already done when this method is called, raises InvalidStateError.
- Return type:
None
- class faust.types.tuples.Message(topic: str, partition: int, offset: int, timestamp: float, timestamp_type: int, headers: Optional[Union[List[Tuple[str, bytes]], Mapping[str, bytes]]], key: Optional[bytes], value: Optional[bytes], checksum: Optional[bytes], serialized_key_size: Optional[int] = None, serialized_value_size: Optional[int] = None, tp: Optional[TP] = None, time_in: Optional[float] = None, time_out: Optional[float] = None, time_total: Optional[float] = None, generation_id: Optional[int] = None)[source]¶
-
- tp¶
- time_total: Optional[float]¶
Total processing time (in seconds), or None if the event is still processing.
- span¶
- class faust.types.tuples.PendingMessage(channel, key, value, partition, timestamp, headers, key_serializer, value_serializer, callback, topic, offset, generation_id)[source]¶
- channel: _ChannelT¶
Alias for field number 0
- headers: Optional[Union[List[Tuple[str, bytes]], MutableMapping[str, bytes]]]¶
Alias for field number 5
- class faust.types.tuples.RecordMetadata(topic, partition, topic_partition, offset, timestamp, timestamp_type)[source]¶