Class ComPersistenceAdaptorBinaryDynamic
java.lang.Object
one.microstream.communication.binarydynamic.ComPersistenceAdaptorBinaryDynamic
- All Implemented Interfaces:
ComPersistenceAdaptor<ComConnection>
,PersistenceTypeDictionaryProvider
,PersistenceTypeDictionaryViewProvider
public class ComPersistenceAdaptorBinaryDynamic extends Object implements ComPersistenceAdaptor<ComConnection>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.communication.types.ComPersistenceAdaptor
ComPersistenceAdaptor.Abstract<C>
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryProvider
PersistenceTypeDictionaryProvider.Caching, PersistenceTypeDictionaryProvider.Default
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryViewProvider
PersistenceTypeDictionaryViewProvider.Wrapper
-
Constructor Summary
Constructors Modifier Constructor Description protected
ComPersistenceAdaptorBinaryDynamic(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider, PersistenceIdStrategy hostInitIdStrategy, XGettingEnum<Class<?>> entityTypes, ByteOrder hostByteOrder, PersistenceIdStrategy hostIdStrategy)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.communication.types.ComPersistenceAdaptor
initializeClientPersistenceFoundation, initializeHostPersistenceFoundation, initializePersistenceFoundation, provideClientPersistenceManager, provideHostPersistenceManager
-
Constructor Details
-
ComPersistenceAdaptorBinaryDynamic
protected ComPersistenceAdaptorBinaryDynamic(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider, PersistenceIdStrategy hostInitIdStrategy, XGettingEnum<Class<?>> entityTypes, ByteOrder hostByteOrder, PersistenceIdStrategy hostIdStrategy)
-
-
Method Details
-
New
public static ComPersistenceAdaptorBinaryDynamic New(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider, PersistenceIdStrategy hostInitIdStrategy, XGettingEnum<Class<?>> entityTypes, ByteOrder hostByteOrder, PersistenceIdStrategy hostIdStrategy) -
persistenceFoundation
- Specified by:
persistenceFoundation
in interfaceComPersistenceAdaptor<ComConnection>
-
iterateEntityTypes
- Specified by:
iterateEntityTypes
in interfaceComPersistenceAdaptor<ComConnection>
-
hostInitializationIdStrategy
- Specified by:
hostInitializationIdStrategy
in interfaceComPersistenceAdaptor<ComConnection>
-
hostIdStrategy
- Specified by:
hostIdStrategy
in interfaceComPersistenceAdaptor<ComConnection>
-
hostByteOrder
- Specified by:
hostByteOrder
in interfaceComPersistenceAdaptor<ComConnection>
-
provideTypeDictionaryCompiler
- Specified by:
provideTypeDictionaryCompiler
in interfaceComPersistenceAdaptor<ComConnection>
-
createInitializationFoundation
- Specified by:
createInitializationFoundation
in interfaceComPersistenceAdaptor<ComConnection>
-
provideHostPersistenceFoundation
Description copied from interface:ComPersistenceAdaptor
Provides aPersistenceFoundation
instance prepared for the passed connection instance. The passed connection instance might be null, in which case the returned foundation instance can only be used for general, non-communication-related operations.See
ComPersistenceAdaptor.provideHostPersistenceManager(C)
with a passed non-null connection instance.
SeeComPersistenceAdaptor.provideTypeDictionaryCompiler()
with a passed null connection instance.- Specified by:
provideHostPersistenceFoundation
in interfaceComPersistenceAdaptor<ComConnection>
- Parameters:
connection
- connection to lookup the host persistence foundation for- Returns:
- the persistence foundation for the given connection
- See Also:
ComPersistenceAdaptor.provideHostPersistenceManager(C)
,ComPersistenceAdaptor.provideTypeDictionaryCompiler()
-
provideClientPersistenceFoundation
public BinaryPersistenceFoundation<?> provideClientPersistenceFoundation(ComConnection connection, ComProtocol protocol)- Specified by:
provideClientPersistenceFoundation
in interfaceComPersistenceAdaptor<ComConnection>
-
createHostChannel
public ComHostChannel<ComConnection> createHostChannel(ComConnection connection, ComProtocol protocol, ComHost<ComConnection> parent)- Specified by:
createHostChannel
in interfaceComPersistenceAdaptor<ComConnection>
-
createClientChannel
public ComClientChannel<ComConnection> createClientChannel(ComConnection connection, ComProtocol protocol, ComClient<ComConnection> parent)- Specified by:
createClientChannel
in interfaceComPersistenceAdaptor<ComConnection>
-
provideTypeDictionaryInternal
-
provideTypeDictionary
- Specified by:
provideTypeDictionary
in interfaceComPersistenceAdaptor<ComConnection>
- Specified by:
provideTypeDictionary
in interfacePersistenceTypeDictionaryProvider
- Specified by:
provideTypeDictionary
in interfacePersistenceTypeDictionaryViewProvider
-
Creator
-
Creator
public static ComPersistenceAdaptorCreator<ComConnection> Creator(BinaryPersistenceFoundation<?> foundation) -
Creator
public static ComPersistenceAdaptorCreator<ComConnection> Creator(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider)
-