Interface SerializerTypeInfoStrategy
- All Superinterfaces:
PersistenceTypeDefinitionRegistrationObserver
- All Known Implementing Classes:
SerializerTypeInfoStrategy.Diff
,SerializerTypeInfoStrategy.IncrementalDiff
,SerializerTypeInfoStrategy.TypeDictionary
public interface SerializerTypeInfoStrategy extends PersistenceTypeDefinitionRegistrationObserver
Implementations supply the type information that is included into the serializers output.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SerializerTypeInfoStrategy.Diff
This implementation includes type information for types added to the serializers type registry in the current serialization and all previous serializations.static class
SerializerTypeInfoStrategy.IncrementalDiff
This implementation includes only type information for types added to the serializers type registry in the current serialization.static class
SerializerTypeInfoStrategy.TypeDictionary
This implementation includes type information for all types currently known to the serializer including those registered during the setup. -
Method Summary
Modifier and Type Method Description SerializerTypeInfo
get()
returns the current type information availableboolean
hasUpdate()
indicates that new types had been added since the last get callboolean
includeOnce()
Returns true if the type information should be included only once after it has been updated.Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinitionRegistrationObserver
observeTypeDefinitionRegistration
-
Method Details
-
get
SerializerTypeInfo get()returns the current type information available- Returns:
- the actual type information
-
hasUpdate
boolean hasUpdate()indicates that new types had been added since the last get call- Returns:
- true if there are updated type info
-
includeOnce
boolean includeOnce()Returns true if the type information should be included only once after it has been updated.- Returns:
- true if type info has not to be included repeatedly
-