Class CoordinationStrategyStartContextImpl
- java.lang.Object
-
- org.hibernate.search.mapper.orm.mapping.impl.CoordinationStrategyStartContextImpl
-
- All Implemented Interfaces:
CoordinationStrategyStartContext
public class CoordinationStrategyStartContextImpl extends Object implements CoordinationStrategyStartContext
-
-
Constructor Summary
Constructors Constructor Description CoordinationStrategyStartContextImpl(AutomaticIndexingMappingContext mapping, MappingStartContext delegate, TenancyConfiguration tenancyConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanResolverbeanResolver()Clockclock()ConfigurationPropertySourceconfigurationPropertySource()ContextualFailureCollectorfailureCollector()A collector of (non-fatal) failures, allowing notification of Hibernate Search that something went wrong and an exception should be thrown at some point, while still continuing the bootstrap process for some time to collect other errors that could be relevant to users.AutomaticIndexingMappingContextmapping()TenancyConfigurationtenancyConfiguration()ThreadPoolProviderthreadPoolProvider()
-
-
-
Constructor Detail
-
CoordinationStrategyStartContextImpl
public CoordinationStrategyStartContextImpl(AutomaticIndexingMappingContext mapping, MappingStartContext delegate, TenancyConfiguration tenancyConfiguration)
-
-
Method Detail
-
failureCollector
public ContextualFailureCollector failureCollector()
Description copied from interface:CoordinationStrategyStartContextA collector of (non-fatal) failures, allowing notification of Hibernate Search that something went wrong and an exception should be thrown at some point, while still continuing the bootstrap process for some time to collect other errors that could be relevant to users.- Specified by:
failureCollectorin interfaceCoordinationStrategyStartContext- Returns:
- A failure collector.
-
beanResolver
public BeanResolver beanResolver()
- Specified by:
beanResolverin interfaceCoordinationStrategyStartContext- Returns:
- A
BeanResolver.
-
configurationPropertySource
public ConfigurationPropertySource configurationPropertySource()
- Specified by:
configurationPropertySourcein interfaceCoordinationStrategyStartContext- Returns:
- A configuration property source, appropriately masked so that the strategy doesn't need to care about Hibernate Search prefixes (hibernate.search.*, etc.). All the properties can be accessed at the root. CAUTION: the property key "synchronization" and any sub-keys are reserved.
-
threadPoolProvider
public ThreadPoolProvider threadPoolProvider()
- Specified by:
threadPoolProviderin interfaceCoordinationStrategyStartContext- Returns:
- A provided of thread pools, to use when spawning background processes.
-
clock
public Clock clock()
- Specified by:
clockin interfaceCoordinationStrategyStartContext- Returns:
- A
Clockto be used for coordination between nodes.
-
mapping
public AutomaticIndexingMappingContext mapping()
- Specified by:
mappingin interfaceCoordinationStrategyStartContext- Returns:
- The mapping, providing all information and operations necessary for background processing of indexing events.
-
tenancyConfiguration
public TenancyConfiguration tenancyConfiguration()
- Specified by:
tenancyConfigurationin interfaceCoordinationStrategyStartContext
-
-