Package com._1c.g5.v8.bm.core
Class BmEngineSettings
- java.lang.Object
-
- com._1c.g5.v8.bm.core.BmEngineSettings
-
public final class BmEngineSettings extends Object
Engine settings.
-
-
Constructor Summary
Constructors Constructor Description BmEngineSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BmEngineSettings
attributeSerializers(Collection<IBmAttributeSerializer> attributeSerializers)
Sets custom attribute serializers.BmEngineSettings
crashListener(IBmEngineCrashListener crashListener)
Sets crash listener.BmEngineSettings
crossReferenceFilters(Collection<IBmCrossReferenceFilter> crossReferenceFilters)
Sets cross-reference filters to use when making a decision whether a particular reference must be tracked.BmEngineSettings
enableEvents(boolean enableEvents)
Sets the flag indicating whether the events are enabled.BmEngineSettings
enableMonitoring(boolean enableMonitoring)
Sets the flag indicating whether the engine monitoring is enabled.BmEngineSettings
executorService(ExecutorService executorService)
Sets the executor service that will be used by the engine for housekeeping tasks.BmEngineSettings
externalUriResolvers(Collection<IBmExternalUriResolver> externalUriResolvers)
Sets external URI resolvers to use in the process of resolving URIs that do not belong to the created engine.BmEngineSettings
indexedAttributes(Collection<org.eclipse.emf.ecore.EAttribute> attributes)
Sets indexed attributes.BmEngineSettings
lockWaitTimeout(long lockWaitTimeout)
Sets the maximum time in milliseconds to wait for object lock.BmEngineSettings
referencePersistenceContributors(Collection<IBmReferencePersistenceContributor> referencePersistenceContributors)
Sets reference persistence contributors.BmEngineSettings
unfinishedCommitProcessor(IBmUnfinishedCommitProcessor unfinishedCommitProcessor)
Sets unfinished commit processor.BmEngineSettings
uriBuildContributors(Collection<IBmUriBuildContributor> uriBuildContributors)
Sets URI build contributors to use in the process of building URIs.BmEngineSettings
useMemoryMappedFiles(boolean useMemoryMappedFiles)
Sets the flag indicating whether memory-mapped files can be used.
-
-
-
Method Detail
-
lockWaitTimeout
public BmEngineSettings lockWaitTimeout(long lockWaitTimeout)
Sets the maximum time in milliseconds to wait for object lock.- Parameters:
lockWaitTimeout
- The timeout value to set. Must be greater than0
- Returns:
- a reference to this object.
-
enableEvents
public BmEngineSettings enableEvents(boolean enableEvents)
Sets the flag indicating whether the events are enabled.- Parameters:
enableEvents
- The flag value.- Returns:
- a reference to this object.
-
enableMonitoring
public BmEngineSettings enableMonitoring(boolean enableMonitoring)
Sets the flag indicating whether the engine monitoring is enabled.- Parameters:
enableMonitoring
- The flag value to set.- Returns:
- a reference to this object.
-
useMemoryMappedFiles
public BmEngineSettings useMemoryMappedFiles(boolean useMemoryMappedFiles)
Sets the flag indicating whether memory-mapped files can be used.- Parameters:
useMemoryMappedFiles
- The flag value to set.- Returns:
- a reference to this object.
-
executorService
public BmEngineSettings executorService(ExecutorService executorService)
Sets the executor service that will be used by the engine for housekeeping tasks. The executor service may be shared between several engines.- Parameters:
executorService
- The executor service to set. May benull
.- Returns:
- a reference to this object.
-
crashListener
public BmEngineSettings crashListener(IBmEngineCrashListener crashListener)
Sets crash listener.- Parameters:
crashListener
- The crash listener to set. May benull
.- Returns:
- a reference to this object.
-
unfinishedCommitProcessor
public BmEngineSettings unfinishedCommitProcessor(IBmUnfinishedCommitProcessor unfinishedCommitProcessor)
Sets unfinished commit processor.- Parameters:
unfinishedCommitProcessor
- The unfinished commit processor to set. May benull
.- Returns:
- a reference to this object.
-
indexedAttributes
public BmEngineSettings indexedAttributes(Collection<org.eclipse.emf.ecore.EAttribute> attributes)
Sets indexed attributes.- Parameters:
attributes
- The attributes. May benull
.- Returns:
- a reference to this object.
-
uriBuildContributors
public BmEngineSettings uriBuildContributors(Collection<IBmUriBuildContributor> uriBuildContributors)
Sets URI build contributors to use in the process of building URIs.- Parameters:
uriBuildContributors
- The collection ofURI build contributors
to set. May benull
.- Returns:
- a reference to this object.
-
crossReferenceFilters
public BmEngineSettings crossReferenceFilters(Collection<IBmCrossReferenceFilter> crossReferenceFilters)
Sets cross-reference filters to use when making a decision whether a particular reference must be tracked.- Parameters:
crossReferenceFilters
- The collection ofcross-reference filters
to set. May benull
.- Returns:
- a reference to this object.
-
externalUriResolvers
public BmEngineSettings externalUriResolvers(Collection<IBmExternalUriResolver> externalUriResolvers)
Sets external URI resolvers to use in the process of resolving URIs that do not belong to the created engine.- Parameters:
externalUriResolvers
- The collection ofexternal URI resolvers
to set. May benull
.- Returns:
- a reference to this object.
-
referencePersistenceContributors
public BmEngineSettings referencePersistenceContributors(Collection<IBmReferencePersistenceContributor> referencePersistenceContributors)
Sets reference persistence contributors.- Parameters:
referencePersistenceContributors
- The collection ofreference persistence contributors
to set. May benull
.- Returns:
- a reference to this object.
-
attributeSerializers
public BmEngineSettings attributeSerializers(Collection<IBmAttributeSerializer> attributeSerializers)
Sets custom attribute serializers.- Parameters:
attributeSerializers
- The collection ofattribute serializers
to set. May benull
.- Returns:
- a reference to this object.
-
-