|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.utils.WatchDog.DefaultObserver<A>
public static class WatchDog.DefaultObserver<A>
A default implementation of #ChangeHandler. Delete and Update will both invoke the #init method which satifies most use cases. So subclasses may simply override the #init method to fit their own needs.
Field Summary | |
---|---|
protected java.util.concurrent.locks.ReadWriteLock |
lock
|
protected A |
object
|
Constructor Summary | |
---|---|
WatchDog.DefaultObserver()
|
Method Summary | |
---|---|
A |
get()
|
java.util.concurrent.locks.Lock |
getLock()
|
void |
init()
empty implementation |
boolean |
isInitialized()
|
void |
onDelete()
delegate to #init |
void |
onUpdate()
delegate to #init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.concurrent.locks.ReadWriteLock lock
protected A object
Constructor Detail |
---|
public WatchDog.DefaultObserver()
Method Detail |
---|
public boolean isInitialized()
isInitialized
in interface WatchDog.Observer<A>
public void init()
init
in interface WatchDog.Observer<A>
public void onDelete()
onDelete
in interface WatchDog.Observer<A>
public void onUpdate()
onUpdate
in interface WatchDog.Observer<A>
public java.util.concurrent.locks.Lock getLock()
getLock
in interface WatchDog.Observer<A>
public A get()
get
in interface WatchDog.Observer<A>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |