class WithSerializationContext(ABC): (source)
Known subclasses: temporalio.client.AsyncActivityHandle
, temporalio.converter.CompositePayloadConverter
, temporalio.converter.DataConverter
Interface for classes that can use serialization context.
The following classes may implement this interface:
- PayloadConverter
- PayloadCodec
- FailureConverter
- EncodingPayloadConverter
During data converter operations (encoding/decoding, serialization/deserialization, and failure conversion), instances of classes implementing this interface will be replaced by the result of calling with_context(context). This allows overridden methods (encode/decode, to_payload/from_payload, etc) to use the context.
Method | with |
Return a copy of this object configured to use the given context. |
temporalio.client.AsyncActivityHandle
, temporalio.converter.CompositePayloadConverter
, temporalio.converter.DataConverter
Return a copy of this object configured to use the given context.
Parameters | |
context:SerializationContext | The serialization context to use. |
Returns | |
Self | A new instance configured with the context. |