Interface MappingImplementor<M>
-
- Type Parameters:
M- The concrete type for this implementor.
public interface MappingImplementor<M>Interface used by the engine to manipulate mappingsPublicly exposed mapping interfaces do not have to extend this interface; only the implementations have to implement it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<?>preStop(MappingPreStopContext context)Prepare forstop(), executing any operations that needs to be executed before shutdown.CompletableFuture<?>start(MappingStartContext context)Start any resource necessary to operate the mapping at runtime.voidstop()Stop and release any resource necessary to operate the mapping at runtime.MtoConcreteType()
-
-
-
Method Detail
-
toConcreteType
M toConcreteType()
-
start
CompletableFuture<?> start(MappingStartContext context)
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
CompletableFuture<?> preStop(MappingPreStopContext context)
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.
-
-