Class ComTypeMappingResolver
java.lang.Object
one.microstream.communication.binarydynamic.ComTypeMappingResolver
public class ComTypeMappingResolver extends Object
This class handles the matching of types that have been modified on either the client or the host side
Including the necessary data transfer during the initialization of the ComChannels.
-
Field Summary
Fields Modifier and Type Field Description protected ComConnection
connection
protected PersistenceTypeDictionaryView
hostTypeDictionary
protected static int
LENGTH_CHAR_COUNT
protected ComTypeDefinitionBuilder
typeDefinitionBuilder
protected PersistenceTypeDictionaryAssembler
typeDictionaryAssembler
protected PersistenceTypeHandlerManager<Binary>
typeHandlerManager
-
Constructor Summary
Constructors Constructor Description ComTypeMappingResolver(PersistenceTypeDictionaryAssembler typeDictionaryAssembler, ComConnection connection, PersistenceTypeDictionaryView hostTypeDictionary, PersistenceTypeHandlerManager<Binary> typeHandlerManager, ComTypeDefinitionBuilder typeDefinitionBuilder)
Constructs a ComTypeMappingResolver instance -
Method Summary
Modifier and Type Method Description void
resolveClient()
Handle the client's side of the communication type mapping during connection initialization phase.void
resolveHost()
Handle the host's side of the communication type mapping during connection initialization phase.
-
Field Details
-
LENGTH_CHAR_COUNT
protected static final int LENGTH_CHAR_COUNT- See Also:
- Constant Field Values
-
typeDictionaryAssembler
-
connection
-
hostTypeDictionary
-
typeHandlerManager
-
typeDefinitionBuilder
-
-
Constructor Details
-
ComTypeMappingResolver
public ComTypeMappingResolver(PersistenceTypeDictionaryAssembler typeDictionaryAssembler, ComConnection connection, PersistenceTypeDictionaryView hostTypeDictionary, PersistenceTypeHandlerManager<Binary> typeHandlerManager, ComTypeDefinitionBuilder typeDefinitionBuilder)Constructs a ComTypeMappingResolver instance- Parameters:
typeDictionaryAssembler
- PersistenceTypeDictionaryAssemblerconnection
- connectionhostTypeDictionary
- PersistenceTypeDictionaryViewtypeHandlerManager
- PersistenceTypeHandlerManagertypeDefinitionBuilder
- ComTypeDefinitionBuilder
-
-
Method Details
-
resolveClient
public void resolveClient()Handle the client's side of the communication type mapping during connection initialization phase. This is collection all type definition that belong to the clients classes that needs to be mapped by the host and transferring those to the host. -
resolveHost
public void resolveHost()Handle the host's side of the communication type mapping during connection initialization phase. This is receiving the client's type definitions and creating the required legacy type handlers.
-