Class OWatcher
java.lang.Object
com.orientechnologies.orient.distributed.context.coordination.dbs.OWatcher
- Direct Known Subclasses:
ODatabasesTopologyState,ODatabaseTopologyState,OTopologyManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final recordprotected static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteOn(OWatcher.WaitCond cond, ONotificationAction execute) protected voidprotected booleanwaitFor(Optional<Long> timeout, OWatcher.WaitCond cond) Wait for a condition, it returns true if the condition is matched false in case of timeout.
-
Constructor Details
-
OWatcher
public OWatcher()
-
-
Method Details
-
waitFor
protected boolean waitFor(Optional<Long> timeout, OWatcher.WaitCond cond) throws InterruptedException Wait for a condition, it returns true if the condition is matched false in case of timeout.- Parameters:
timeout- in milliscond-- Returns:
- Throws:
InterruptedException
-
executeOn
-
notifyChange
protected void notifyChange()
-