Package one.microstream.com.binary
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 class
ComPersistenceAdaptorBinary.Abstract<C>
static interface
ComPersistenceAdaptorBinary.Creator<C>
static class
ComPersistenceAdaptorBinary.Default
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryProvider
PersistenceTypeDictionaryProvider.Caching
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryViewProvider
PersistenceTypeDictionaryViewProvider.Wrapper
-
Method Summary
Methods inherited from interface one.microstream.com.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:
initializePersistenceFoundation
in interfaceComPersistenceAdaptor<C>
-
persistenceFoundation
BinaryPersistenceFoundation<?> persistenceFoundation()- Specified by:
persistenceFoundation
in 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 modfications set:
PersistenceContextDispatcher.LocalObjectRegistration()
PersistenceSizedArrayLengthController.Fitting()
based on the followig 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 in length 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 definedBinaryPersistenceFoundation
instance. -
Creator
static ComPersistenceAdaptorBinary.Creator.Default Creator(BinaryPersistenceFoundation<?> foundation) -
Creator
static ComPersistenceAdaptorBinary.Creator.Default Creator(BinaryPersistenceFoundation<?> foundation, BufferSizeProvider bufferSizeProvider)
-