Class EmbeddedStorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- java.lang.Object
- 
- one.microstream.util.InstanceDispatcher.Default
- 
- one.microstream.storage.types.StorageFoundation.Default<F>
- 
- one.microstream.storage.types.EmbeddedStorageFoundation.Default<F>
 
 
 
- 
- All Implemented Interfaces:
- Unpersistable,- EmbeddedStorageFoundation<F>,- StorageFoundation<F>,- InstanceDispatcher
 - Enclosing interface:
- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation<?>>
 
 public static class EmbeddedStorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>> extends StorageFoundation.Default<F> implements EmbeddedStorageFoundation<F> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface one.microstream.storage.types.EmbeddedStorageFoundationEmbeddedStorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
 - 
Nested classes/interfaces inherited from interface one.microstream.util.InstanceDispatcherInstanceDispatcher.Default
 - 
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFoundationStorageFoundation.Default<F extends StorageFoundation.Default<?>>
 
- 
 - 
Constructor SummaryConstructors Constructor Description Default()
 - 
Method Summary- 
Methods inherited from class one.microstream.storage.types.StorageFoundation.DefaultcreateStorageManager, getBackupThreadProvider, getChannelCreator, getChannelThreadProvider, getConfiguration, getDataChunkValidatorProvider, getDataChunkValidatorProvider2, getDataFileValidatorCreator, getEntityDataIteratorProvider, getEntityDataValidatorCreator, getEntityMarkMonitorCreator, getEventLogger, getExceptionHandler, getGCZombieOidHandler, getInitialDataFileNumberProvider, getLockFileManagerCreator, getLockFileManagerThreadProvider, getLockFileSetup, getLockFileSetupProvider, getObjectIdRangeEvaluator, getOidMarkQueueCreator, getOperationControllerCreator, getProcessIdentityProvider, getReaderProvider, getRequestAcceptorCreator, getRequestTaskCreator, getRootOidSelectorProvider, getRootTypeIdProvider, getTaskBrokerCreator, getThreadNameProvider, getThreadProvider, getTimestampProvider, getTypeDictionary, getWriterProvider, isByteOrderMismatch, setBackupThreadProvider, setChannelThreadProvider, setDataChunkValidatorProvider2, setDataFileValidatorCreator, setEntityDataIteratorProvider, setEntityDataValidatorCreator, setEntityMarkMonitorCreator, setEventLogger, setExceptionHandler, setGCZombieOidHandler, setInitialDataFileNumberProvider, setLockFileManagerCreator, setLockFileManagerThreadProvider, setLockFileSetup, setLockFileSetupProvider, setObjectIdRangeEvaluator, setOidMarkQueueCreator, setOperationControllerCreator, setProcessIdentityProvider, setReaderProvider, setRootOidSelectorProvider, setThreadNameProvider, setThreadProvider, setWriterProvider
 - 
Methods inherited from class one.microstream.util.InstanceDispatcher.DefaultgetInstanceDispatcherLogic, setInstanceDispatcherLogic
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface one.microstream.storage.types.EmbeddedStorageFoundationcreateEmbeddedStorageManager, createEmbeddedStorageManager, start, start
 - 
Methods inherited from interface one.microstream.storage.types.StorageFoundationcreateStorageManager, getBackupThreadProvider, getChannelCreator, getChannelThreadProvider, getConfiguration, getDataChunkValidatorProvider, getDataChunkValidatorProvider2, getDataFileValidatorCreator, getEntityDataIteratorProvider, getEntityDataValidatorCreator, getEntityMarkMonitorCreator, getEventLogger, getExceptionHandler, getGCZombieOidHandler, getInitialDataFileNumberProvider, getLockFileManagerCreator, getLockFileManagerThreadProvider, getLockFileSetup, getLockFileSetupProvider, getObjectIdRangeEvaluator, getOidMarkQueueCreator, getOperationControllerCreator, getProcessIdentityProvider, getReaderProvider, getRequestAcceptorCreator, getRequestTaskCreator, getRootOidSelectorProvider, getRootTypeIdProvider, getTaskBrokerCreator, getThreadNameProvider, getThreadProvider, getTimestampProvider, getTypeDictionary, getWriterProvider, setBackupThreadProvider, setChannelThreadProvider, setDataChunkValidatorProvider2, setDataFileValidatorCreator, setEntityDataIteratorProvider, setEntityDataValidatorCreator, setEntityMarkMonitorCreator, setEventLogger, setExceptionHandler, setGCZombieOidHandler, setInitialDataFileNumberProvider, setLockFileManagerCreator, setLockFileManagerThreadProvider, setLockFileSetup, setLockFileSetupProvider, setObjectIdRangeEvaluator, setOidMarkQueueCreator, setOperationControllerCreator, setProcessIdentityProvider, setReaderProvider, setRootOidSelectorProvider, setThreadNameProvider, setThreadProvider, setWriterProvider
 
- 
 
- 
- 
- 
Method Detail- 
onConnectionFoundationpublic F onConnectionFoundation(Consumer<? super EmbeddedStorageConnectionFoundation<?>> logic) Description copied from interface:EmbeddedStorageFoundationExecutes the passed logic on theEmbeddedStorageConnectionFoundationinstance provided byEmbeddedStorageFoundation.getConnectionFoundation().This is a mere utility method to allow more concise syntax and multi-layered method chaining. - Specified by:
- onConnectionFoundationin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- logic- the logic to be executed.
- Returns:
- this to allow method chaining.
 
 - 
onThispublic F onThis(Consumer<? super EmbeddedStorageFoundation<?>> logic) Description copied from interface:EmbeddedStorageFoundationExecutes the passed logic on this.This is a mere utility method to allow more concise syntax and multi-layered method chaining. - Specified by:
- onThisin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- logic- the logic to be executed.
- Returns:
- this to allow method chaining.
 
 - 
setRootpublic F setRoot(Object root) Description copied from interface:EmbeddedStorageFoundationRegisters the passed root instance as the root instance at theEmbeddedStorageConnectionFoundationinstance provided byEmbeddedStorageFoundation.getConnectionFoundation().
 UseEmbeddedStorageFoundation.setRootSupplier(Supplier)for a more dynamic approach, i.e. if the actual root instance must be created after setting up and creating theEmbeddedStorageManager.- Specified by:
- setRootin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- root- the instance to be used as the persistent entity graph's root instance.
- Returns:
- this to allow method chaining.
- See Also:
- EmbeddedStorageFoundation.setRootSupplier(Supplier),- #setRootResolverProvider(PersistenceRootResolver),- EmbeddedStorageConnectionFoundation#setRootResolverProvider(PersistenceRootResolver)
 
 - 
setRootSupplierpublic F setRootSupplier(Supplier<?> rootSupplier) Description copied from interface:EmbeddedStorageFoundationRegisters the passed rootSupplierSupplieras the root instance supplier at thePersistenceRootResolverProviderinstance provided byPersistenceFoundation.getRootResolverProvider()of theEmbeddedStorageConnectionFoundationinstance provided byEmbeddedStorageFoundation.getConnectionFoundation().This means this method is merely an alias for .onConnectionFoundation(f -> f.getRootResolverProvider().registerCustomRootSupplier(rootSupplier);) }Note that replacing the PersistenceRootResolverProviderinstance, for example via #setRootResolverProvider, will nullify the changes made via this method.The actual root instance will be queried during startup, not before. 
 This technique allows a more dynamic approach thanEmbeddedStorageFoundation.setRoot(Object), i.e. if the actual root instance must be created after setting up and creating theEmbeddedStorageManager.- Specified by:
- setRootSupplierin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- rootSupplier- the supplying logic to obtain the instance to be used during startup as the persistent entity graph's root instance.
- Returns:
- this to allow method chaining.
- See Also:
- EmbeddedStorageManager.start(),- EmbeddedStorageFoundation.setRoot(Object),- #setRootResolverProvider(PersistenceRootResolver),- EmbeddedStorageConnectionFoundation#setRootResolverProvider(PersistenceRootResolver),- EmbeddedStorageConnectionFoundation#registerCustomRootSupplier(PersistenceRootResolver)
 
 - 
setRootResolverProviderpublic F setRootResolverProvider(PersistenceRootResolverProvider rootResolverProvider) Description copied from interface:EmbeddedStorageFoundationAlias for
 Sets the.onConnectionFoundation(f -> f.setRootResolverProvider(rootResolverProvider);) }PersistenceRootResolverProviderinstance to be used in the internalEmbeddedStorageConnectionFoundation.- Specified by:
- setRootResolverProviderin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- rootResolverProvider- the- PersistenceRootResolverProviderto be set.
- Returns:
- this to allow method chaining.
- See Also:
- EmbeddedStorageFoundation.setRootSupplier(Supplier),- EmbeddedStorageConnectionFoundation#setRootResolverProvider(PersistenceRootResolver)
 
 - 
getConnectionFoundationpublic EmbeddedStorageConnectionFoundation<?> getConnectionFoundation() Description copied from interface:EmbeddedStorageFoundationReturns the currently setStorageConfigurationinstance.If no instance is set and the implementation deems an instance of this type mandatory for the successful executon of EmbeddedStorageFoundation.createEmbeddedStorageManager(), a suitable instance is created via an internal default creation logic and then set as the current. If the implementation has not sufficient logic and/or data to create a default instance, aMissingFoundationPartExceptionis thrown.- Specified by:
- getConnectionFoundationin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Returns:
- the currently set instance, potentially created on-demand if required.
 
 - 
getRootResolverProviderpublic PersistenceRootResolverProvider getRootResolverProvider() Description copied from interface:EmbeddedStorageFoundationReturns the internalEmbeddedStorageConnectionFoundationinstance'sPersistenceRootResolverProviderinstance. If none is present so far, a new default one is created.- Specified by:
- getRootResolverProviderin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Returns:
- the PersistenceRootResolverProviderinstance to be used.
 
 - 
setConfigurationpublic F setConfiguration(StorageConfiguration configuration) Description copied from interface:StorageFoundationSets theStorageConfigurationinstance to be used for the assembly.- Specified by:
- setConfigurationin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setConfigurationin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- configuration- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setRequestAcceptorCreatorpublic F setRequestAcceptorCreator(StorageRequestAcceptor.Creator requestAcceptorCreator) Description copied from interface:StorageFoundationSets theStorageRequestAcceptor.Creatorinstance to be used for the assembly.- Specified by:
- setRequestAcceptorCreatorin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setRequestAcceptorCreatorin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- requestAcceptorCreator- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setTaskBrokerCreatorpublic F setTaskBrokerCreator(StorageTaskBroker.Creator taskBrokerCreator) Description copied from interface:StorageFoundationSets theStorageTaskBroker.Creatorinstance to be used for the assembly.- Specified by:
- setTaskBrokerCreatorin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setTaskBrokerCreatorin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- taskBrokerCreator- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setDataChunkValidatorProviderpublic F setDataChunkValidatorProvider(StorageDataChunkValidator.Provider dataChunkValidatorProvider) Description copied from interface:StorageFoundationSets theStorageDataChunkValidator.Providerinstance to be used for the assembly.- Specified by:
- setDataChunkValidatorProviderin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setDataChunkValidatorProviderin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- dataChunkValidatorProvider- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setChannelCreatorpublic F setChannelCreator(StorageChannelsCreator channelCreator) Description copied from interface:StorageFoundationSets theStorageChannelsCreatorinstance to be used for the assembly.- Specified by:
- setChannelCreatorin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setChannelCreatorin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- channelCreator- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setTaskCreatorpublic F setTaskCreator(StorageRequestTaskCreator taskCreator) Description copied from interface:StorageFoundationSets theStorageRequestTaskCreatorinstance to be used for the assembly.- Specified by:
- setTaskCreatorin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setTaskCreatorin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- taskCreator- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setTypeDictionarypublic F setTypeDictionary(StorageTypeDictionary typeDictionary) Description copied from interface:StorageFoundationSets theStorageTypeDictionaryinstance to be used for the assembly.- Specified by:
- setTypeDictionaryin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setTypeDictionaryin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- typeDictionary- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setRootTypeIdProviderpublic F setRootTypeIdProvider(StorageRootTypeIdProvider rootTypeIdProvider) Description copied from interface:StorageFoundationSets theStorageRootTypeIdProviderinstance to be used for the assembly.- Specified by:
- setRootTypeIdProviderin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setRootTypeIdProviderin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- rootTypeIdProvider- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setConnectionFoundationpublic F setConnectionFoundation(EmbeddedStorageConnectionFoundation<?> connectionFoundation) Description copied from interface:EmbeddedStorageFoundationSets theEmbeddedStorageConnectionFoundationinstance to be used for the assembly.- Specified by:
- setConnectionFoundationin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- connectionFoundation- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
setRefactoringMappingProviderpublic F setRefactoringMappingProvider(PersistenceRefactoringMappingProvider refactoringMappingProvider) Description copied from interface:EmbeddedStorageFoundationSets the passedPersistenceRefactoringMappingProviderinstance to theEmbeddedStorageConnectionFoundationinstance provided byEmbeddedStorageFoundation.getConnectionFoundation().- Specified by:
- setRefactoringMappingProviderin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- refactoringMappingProvider- the instance to be used.
- Returns:
- this to allow method chaining.
- See Also:
- PersistenceFoundation.setRefactoringMappingProvider(PersistenceRefactoringMappingProvider)
 
 - 
setTimestampProviderpublic F setTimestampProvider(StorageTimestampProvider timestampProvider) Description copied from interface:StorageFoundationSets theStorageTimestampProviderinstance to be used for the assembly.- Specified by:
- setTimestampProviderin interface- StorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Overrides:
- setTimestampProviderin class- StorageFoundation.Default<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- timestampProvider- the instance to be used.
- Returns:
- this to allow method chaining.
 
 - 
executeTypeHandlerRegistrationpublic F executeTypeHandlerRegistration(PersistenceTypeHandlerRegistration<Binary> typeHandlerRegistration) Description copied from interface:EmbeddedStorageFoundationConvenience method forthis.getConnectionFoundation().executeTypeHandlerRegistration(typeHandlerRegistration).See PersistenceFoundation.executeTypeHandlerRegistration(PersistenceTypeHandlerRegistration)for details.- Specified by:
- executeTypeHandlerRegistrationin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- typeHandlerRegistration- the- PersistenceTypeHandlerRegistrationto be executed.
- Returns:
- this to allow method chaining.
 
 - 
createEmbeddedStorageManagerpublic EmbeddedStorageManager createEmbeddedStorageManager(Supplier<?> rootSupplier) Description copied from interface:EmbeddedStorageFoundationCreates and returns a newEmbeddedStorageManagerinstance by using the current state of all registered logic part instances and by on-demand creating missing ones via a default logic.If the passed rootSupplier is null, a default root instance will be created, see EmbeddedStorageManager.defaultRoot(). Otherwise, it will be used to resolve the root instance to be used duringEmbeddedStorageFoundation.start(). This indirection is necessary if the actual root instance is not yet available at the time theEmbeddedStorageManageris created, but will be at the timeEmbeddedStorageFoundation.start()is called.The returned EmbeddedStorageManagerinstance will NOT yet be started.- Specified by:
- createEmbeddedStorageManagerin interface- EmbeddedStorageFoundation<F extends EmbeddedStorageFoundation.Default<?>>
- Parameters:
- rootSupplier- an indirection logic to later supply the instance to be used as the persistent entity graph's root instance.
- Returns:
- a new EmbeddedStorageManagerinstance.
- See Also:
- EmbeddedStorageFoundation.createEmbeddedStorageManager(),- EmbeddedStorageFoundation.createEmbeddedStorageManager(Object),- EmbeddedStorageFoundation.start(),- EmbeddedStorageFoundation.start(Object)
 
 
- 
 
-