Interface MappingImplementor<M>
- Type Parameters:
M
- The concrete type for this implementor.
- All Known Implementing Classes:
AbstractPojoMappingImplementor
public interface MappingImplementor<M>
Interface used by the engine to manipulate mappings
Publicly exposed mapping interfaces do not have to extend this interface; only the implementations have to implement it.
-
Method Summary
Modifier and TypeMethodDescriptionpreStop
(MappingPreStopContext context) Prepare forstop()
, executing any operations that needs to be executed before shutdown.start
(MappingStartContext context) Start any resource necessary to operate the mapping at runtime.void
stop()
Stop and release any resource necessary to operate the mapping at runtime.
-
Method Details
-
toConcreteType
M toConcreteType() -
start
Start any resource necessary to operate the mapping at runtime.Called by the engine once during bootstrap, after backends and index managers were started.
- Parameters:
context
- The start context.- Returns:
- A future that completes when the mapper is completely started.
-
preStop
Prepare forstop()
, executing any operations that needs to be executed before shutdown.- Parameters:
context
- The pre-stop context.- Returns:
- A future that completes when pre-stop operations complete.
-
stop
void stop()Stop and release any resource necessary to operate the mapping at runtime.Called by the engine once before shutdown.
-