Package org.apache.fluo.api.observer
Class AbstractObserver
- java.lang.Object
-
- org.apache.fluo.api.observer.AbstractObserver
-
- All Implemented Interfaces:
Observer
@Deprecated public abstract class AbstractObserver extends Object implements Observer
Deprecated.since 1.1.0. This class was deprecated for two reasons. First the methods its overrides were deprecated. Second, the methods it overrides were made into Java 8 default methods.Implemented by users to a watch aColumn
and be notified of changes to the Column via theObserver.process(TransactionBase, org.apache.fluo.api.data.Bytes, org.apache.fluo.api.data.Column)
method. AbstractObserver extendsObserver
but provides a default implementation for theinit(Context)
andclose()
method so that they can be optionally implemented by user.- Since:
- 1.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.fluo.api.observer.Observer
Observer.Context, Observer.NotificationType, Observer.ObservedColumn
-
-
Constructor Summary
Constructors Constructor Description AbstractObserver()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Implemented by user to close resources used by Observervoid
init(Observer.Context context)
Deprecated.Implemented by user to initialize Observer.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.fluo.api.observer.Observer
getObservedColumn, process
-
-
-
-
Method Detail
-
init
public void init(Observer.Context context) throws Exception
Deprecated.Description copied from interface:Observer
Implemented by user to initialize Observer.
-
-