M - The concrete type for this implementor.public interface MappingImplementor<M>
Publicly exposed mapping interfaces do not have to extend this interface; only the implementations have to implement it.
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<?> |
preStop(MappingPreStopContext context)
Prepare for
stop(),
executing any operations that needs to be executed before shutdown. |
CompletableFuture<?> |
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.
|
M |
toConcreteType() |
M toConcreteType()
CompletableFuture<?> start(MappingStartContext context)
Called by the engine once during bootstrap, after backends and index managers were started.
context - The start context.CompletableFuture<?> preStop(MappingPreStopContext context)
stop(),
executing any operations that needs to be executed before shutdown.context - The pre-stop context.void stop()
Called by the engine once before shutdown.
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.