Interface ComPersistenceAdaptorBinary<C>
- All Superinterfaces:
ComPersistenceAdaptor<C>,PersistenceTypeDictionaryProvider,PersistenceTypeDictionaryViewProvider
- All Known Implementing Classes:
ComPersistenceAdaptorBinary.Abstract,ComPersistenceAdaptorBinary.Default
public interface ComPersistenceAdaptorBinary<C> extends ComPersistenceAdaptor<C>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComPersistenceAdaptorBinary.Abstract<C>static interfaceComPersistenceAdaptorBinary.Creator<C>static classComPersistenceAdaptorBinary.DefaultNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryProvider
PersistenceTypeDictionaryProvider.CachingNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryViewProvider
PersistenceTypeDictionaryViewProvider.Wrapper -
Method Summary
Methods inherited from interface one.microstream.communication.types.ComPersistenceAdaptor
createClientChannel, createHostChannel, createInitializationFoundation, hostByteOrder, hostIdStrategy, hostInitializationIdStrategy, initializeClientPersistenceFoundation, initializeHostPersistenceFoundation, iterateEntityTypes, provideClientPersistenceFoundation, provideClientPersistenceManager, provideHostPersistenceFoundation, provideHostPersistenceManager, provideTypeDictionary, provideTypeDictionaryCompiler
-
Method Details
-
initializePersistenceFoundation
default BinaryPersistenceFoundation<?> initializePersistenceFoundation(PersistenceTypeDictionaryViewProvider typeDictionaryProvider, ByteOrder hostByteOrder, PersistenceIdStrategy idStrategy)- Specified by:
initializePersistenceFoundationin interfaceComPersistenceAdaptor<C>
-
persistenceFoundation
BinaryPersistenceFoundation<?> persistenceFoundation()- Specified by:
persistenceFoundationin interfaceComPersistenceAdaptor<C>
-
New
static ComPersistenceAdaptorBinary.Default New(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider, PersistenceIdStrategy hostInitIdStrategy, XGettingEnum<Class<?>> entityTypes, ByteOrder hostByteOrder, PersistenceIdStrategy hostIdStrategy) -
Creator
CallsCreator(BinaryPersistenceFoundation)with the Com-specific modifications set:
PersistenceContextDispatcher.LocalObjectRegistration()
PersistenceSizedArrayLengthController.Fitting()
based on the following rationale:
PersistenceContextDispatcher.LocalObjectRegistration:
Communication normally doesn't update a central/global object registry (= object graph) directly, but uses a local one that is discarded after every message. In case this shall change, a custom-configured foundation can be passed instead.PersistenceSizedArrayLengthController.Fitting:
Sized arrays shouldn't be unrestricted for use in comm. in order to prevent array bombs.These aspects should be considered to be replicated when calling
Creator(BinaryPersistenceFoundation)directly to pass an externally definedBinaryPersistenceFoundationinstance.- Returns:
- a new creator
-
Creator
static ComPersistenceAdaptorBinary.Creator.Default Creator(BinaryPersistenceFoundation<?> foundation) -
Creator
static ComPersistenceAdaptorBinary.Creator.Default Creator(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider)
-