Interface ResolverCreateHooks.PreWriteCheck
-
- All Superinterfaces:
BiFunction<FDBRecordContext,LocatableResolver,CompletableFuture<Boolean>>
- Enclosing class:
- ResolverCreateHooks
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ResolverCreateHooks.PreWriteCheck extends BiFunction<FDBRecordContext,LocatableResolver,CompletableFuture<Boolean>>
Functional interface for the safety check that will be run before writing a mapping in theLocatableResolver
. The passedLocatableResolver
will be the resolver we are attempting to write to. Implementations can then use the transaction provided to check whether that resolver is the correct one. If not, implementations must throw an exception.
-
-
Method Summary
-
Methods inherited from interface java.util.function.BiFunction
andThen, apply
-
-