Package one.microstream.com
Interface ComPersistenceAdaptor<C>
-
- All Superinterfaces:
PersistenceTypeDictionaryProvider
,PersistenceTypeDictionaryViewProvider
- All Known Subinterfaces:
ComPersistenceAdaptorBinary<C>
- All Known Implementing Classes:
ComPersistenceAdaptor.Abstract
,ComPersistenceAdaptorBinary.Abstract
,ComPersistenceAdaptorBinary.Default
public interface ComPersistenceAdaptor<C> extends PersistenceTypeDictionaryViewProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
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
-
-
Method Summary
-
-
-
Method Detail
-
provideTypeDictionary
default PersistenceTypeDictionaryView provideTypeDictionary()
- Specified by:
provideTypeDictionary
in interfacePersistenceTypeDictionaryProvider
- Specified by:
provideTypeDictionary
in interfacePersistenceTypeDictionaryViewProvider
-
createInitializationFoundation
PersistenceFoundation<?,?> createInitializationFoundation()
-
hostInitializationIdStrategy
PersistenceIdStrategy hostInitializationIdStrategy()
-
hostIdStrategy
PersistenceIdStrategy hostIdStrategy()
-
hostByteOrder
ByteOrder hostByteOrder()
-
provideTypeDictionaryCompiler
default PersistenceTypeDictionaryCompiler provideTypeDictionaryCompiler()
-
provideHostPersistenceManager
default PersistenceManager<?> provideHostPersistenceManager(C connection)
Might return the same instance for all connections or the same for every unique client or a new instance on every call. Depends on the use-case.
The persistence medium type used by the persistence manager is irrelevant on the com-level, hence the "?".- Parameters:
connection
-
-
provideClientPersistenceManager
default PersistenceManager<?> provideClientPersistenceManager(C connection, ComProtocol protocol)
-
provideHostPersistenceFoundation
PersistenceFoundation<?,?> provideHostPersistenceFoundation(C connection)
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
provideHostPersistenceManager(C)
with a passed non-null connection instance.
SeeprovideTypeDictionaryCompiler()
with a passed null connection instance.- Parameters:
connection
-- See Also:
provideHostPersistenceManager(C)
,provideTypeDictionaryCompiler()
-
provideClientPersistenceFoundation
PersistenceFoundation<?,?> provideClientPersistenceFoundation(C connection, ComProtocol protocol)
-
initializePersistenceFoundation
default PersistenceFoundation<?,?> initializePersistenceFoundation(PersistenceTypeDictionaryViewProvider typeDictionaryProvider, ByteOrder targetByteOrder, PersistenceIdStrategy idStrategy)
-
createHostChannel
default ComHostChannel<C> createHostChannel(C connection, ComProtocol protocol, ComHost<C> parent)
-
createClientChannel
default ComClientChannel<C> createClientChannel(C connection, ComProtocol protocol, ComClient<C> parent)
-
persistenceFoundation
PersistenceFoundation<?,?> persistenceFoundation()
-
initializeClientPersistenceFoundation
default PersistenceFoundation<?,?> initializeClientPersistenceFoundation(ComProtocol protocol)
-
initializeHostPersistenceFoundation
default ComPersistenceAdaptor<C> initializeHostPersistenceFoundation()
-
-