Package org.apache.fluo.api.observer
Interface StringObserver
-
- All Superinterfaces:
Observer
- 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 interface StringObserver extends Observer
- Since:
- 1.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.fluo.api.observer.Observer
Observer.Context, Observer.NotificationType, Observer.ObservedColumn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
process(TransactionBase tx, String row, Column col)
default void
process(TransactionBase tx, Bytes row, Column col)
Implemented by users to process notifications on aObserver.ObservedColumn
.-
Methods inherited from interface org.apache.fluo.api.observer.Observer
close, getObservedColumn, init
-
-
-
-
Method Detail
-
process
default void process(TransactionBase tx, Bytes row, Column col) throws Exception
Description copied from interface:Observer
Implemented by users to process notifications on aObserver.ObservedColumn
. If a notification occurs, this method passes the user aTransactionBase
as well as the row andColumn
where the notification occurred. The user can use theTransactionBase
to read and write to Fluo. After this method returns,TransactionBase
will be committed and closed by Fluo.
-
process
void process(TransactionBase tx, String row, Column col) throws Exception
- Throws:
Exception
-
-