public static class WatchDog.DefaultObserver<A> extends java.lang.Object implements WatchDog.Observer<A>
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.locks.ReadWriteLock |
lock |
protected A |
object |
Constructor and Description |
---|
DefaultObserver() |
Modifier and Type | Method and Description |
---|---|
A |
get() |
java.util.concurrent.locks.Lock |
getLock() |
void |
init()
empty implementation
|
boolean |
isInitialized() |
void |
onDelete()
delegate to #init
|
void |
onUpdate()
delegate to #init
|
void |
reset() |
protected final java.util.concurrent.locks.ReadWriteLock lock
protected A object
public boolean isInitialized()
isInitialized
in interface WatchDog.Observer<A>
public void init()
init
in interface WatchDog.Observer<A>
public void reset()
reset
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>