Interface CoprocessorHost.ObserverGetter<C,O>
- Enclosing class:
- CoprocessorHost<C extends Coprocessor,
E extends CoprocessorEnvironment<C>>
- 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 CoprocessorHost.ObserverGetter<C,O>
extends Function<C,Optional<O>>
Implementations defined function to get an observer of type
O
from a coprocessor of
type C
. Concrete implementations of CoprocessorHost define one getter for each observer
they can handle. For e.g. RegionCoprocessorHost will use 3 getters, one for each of
RegionObserver, EndpointObserver and BulkLoadObserver. These getters are used by
ObserverOperation
to get appropriate observer from the coprocessor.-
Method Summary