Interface DocumentSerdes
- All Known Subinterfaces:
DocumentSerdes.Delegating
@Internal
public interface DocumentSerdes
Serdes kept for the duration of one document by the encoder or decoder context of the document. A serde that is
kept between documents stores the serdes it specialized for a document here, under itself, instead of holding
them: such a serde can keep its context, so holding it would keep the document.
A context that keeps document serdes must be confined to a single document and thread, and closed at the end of the document, as the contexts the mappers open for each call are. The values are not synchronized.
- Since:
- 3.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDocument serdes kept by another context, such as the context a derived context delegates to. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Object@Nullable ObjectgetDocumentSerde(Object owner) static booleanstatic voidStores a value for the rest of the document of the context, when the context keeps document serdes.voidputDocumentSerde(Object owner, Object value) Stores a value for the rest of the document.
-
Method Details
-
getDocumentSerde
-
putDocumentSerde
-
get
-
put
-
keeps
- Parameters:
context- The encoder or decoder context- Returns:
- Whether the context, or the context it delegates to, keeps document serdes
-