Class SerializerTypeInfoStrategy.IncrementalDiff
java.lang.Object
one.microstream.persistence.binary.util.SerializerTypeInfoStrategy.IncrementalDiff
- All Implemented Interfaces:
SerializerTypeInfoStrategy,PersistenceTypeDefinitionRegistrationObserver
- Direct Known Subclasses:
SerializerTypeInfoStrategy.Diff
- Enclosing interface:
- SerializerTypeInfoStrategy
public static class SerializerTypeInfoStrategy.IncrementalDiff extends Object implements SerializerTypeInfoStrategy
This implementation includes only type information for types added to the
serializers type registry in the current serialization.
Types that are registered during the serializers setup are never included.
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.util.SerializerTypeInfoStrategy
SerializerTypeInfoStrategy.Diff, SerializerTypeInfoStrategy.IncrementalDiff, SerializerTypeInfoStrategy.TypeDictionary -
Field Summary
Fields Modifier and Type Field Description protected booleanincludeTypeInfoOnceprotected static org.slf4j.Loggerloggerprotected XList<String>newTypesprotected PersistenceTypeDictionaryAssemblertypeAssemblerprotected booleanupdateAvailable -
Constructor Summary
Constructors Constructor Description IncrementalDiff(PersistenceManager<Binary> persistenceManager, boolean includeTypeInfoOnce) -
Method Summary
Modifier and Type Method Description SerializerTypeInfoget()returns the current type information availablebooleanhasUpdate()indicates that new types had been added since the last get callbooleanincludeOnce()Returns true if the type information should be included only once after it has been updated.voidobserveTypeDefinitionRegistration(PersistenceTypeDefinition typeDefinition)
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
typeAssembler
-
newTypes
-
updateAvailable
protected boolean updateAvailable -
includeTypeInfoOnce
protected final boolean includeTypeInfoOnce
-
-
Constructor Details
-
Method Details
-
observeTypeDefinitionRegistration
- Specified by:
observeTypeDefinitionRegistrationin interfacePersistenceTypeDefinitionRegistrationObserver
-
get
Description copied from interface:SerializerTypeInfoStrategyreturns the current type information available- Specified by:
getin interfaceSerializerTypeInfoStrategy- Returns:
- the actual type information
-
hasUpdate
public boolean hasUpdate()Description copied from interface:SerializerTypeInfoStrategyindicates that new types had been added since the last get call- Specified by:
hasUpdatein interfaceSerializerTypeInfoStrategy- Returns:
- true if there are updated type info
-
includeOnce
public boolean includeOnce()Description copied from interface:SerializerTypeInfoStrategyReturns true if the type information should be included only once after it has been updated.- Specified by:
includeOncein interfaceSerializerTypeInfoStrategy- Returns:
- true if type info has not to be included repeatedly
-