public static interface ObserverProvider.Registry.ObserverArgument
Modifier and Type | Method and Description |
---|---|
void |
useObserver(Observer observer)
Calling this method registers the given observer using the parameters previously passed to
the Fluent API.
|
void |
useStrObserver(StringObserver observer)
Calling this method registers the given observer using the parameters previously passed to
the Fluent API.
|
void useObserver(Observer observer)
void useStrObserver(StringObserver observer)
This method was created to allow Observers written as lambda to be passed String
instead of Bytes
for the row.
void provide(ObserverRegistry or, Context ctx) {
or.forColumn(someColumn, WEAK).useStrObserver((tx,row,col) -> {
//row is of type String
};
}
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.