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 boolean
includeTypeInfoOnce
protected static org.slf4j.Logger
logger
protected XList<String>
newTypes
protected PersistenceTypeDictionaryAssembler
typeAssembler
protected boolean
updateAvailable
-
Constructor Summary
Constructors Constructor Description IncrementalDiff(PersistenceManager<Binary> persistenceManager, boolean includeTypeInfoOnce)
-
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.void
observeTypeDefinitionRegistration(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:
observeTypeDefinitionRegistration
in interfacePersistenceTypeDefinitionRegistrationObserver
-
get
Description copied from interface:SerializerTypeInfoStrategy
returns the current type information available- Specified by:
get
in interfaceSerializerTypeInfoStrategy
- Returns:
- the actual type information
-
hasUpdate
public boolean hasUpdate()Description copied from interface:SerializerTypeInfoStrategy
indicates that new types had been added since the last get call- Specified by:
hasUpdate
in interfaceSerializerTypeInfoStrategy
- Returns:
- true if there are updated type info
-
includeOnce
public boolean includeOnce()Description copied from interface:SerializerTypeInfoStrategy
Returns true if the type information should be included only once after it has been updated.- Specified by:
includeOnce
in interfaceSerializerTypeInfoStrategy
- Returns:
- true if type info has not to be included repeatedly
-