public class ReactorDependency
extends java.lang.Object
| Constructor and Description |
|---|
ReactorDependency() |
| Modifier and Type | Method and Description |
|---|---|
void |
changed()
Invalidate all dependent computations immediately and remove them as dependents.
|
boolean |
depend() |
boolean |
depend(ReactorComputation reactorComputation)
Declares that the current computation (or
ReactorComputation if given) depends on `dependency`. |
boolean |
hasDependants()
True if this Dependency has one or more dependent
ReactorComputation,
which would be invalidated if this ReactorDependency were to change. |
public boolean depend()
public boolean depend(ReactorComputation reactorComputation)
ReactorComputation if given) depends on `dependency`.
The computation will be invalidated the next time `dependency` changes.
If there is no current computation and depend()} is called with no arguments, it does nothing and returns false.reactorComputation - computation that depends on this dependencypublic void changed()
public boolean hasDependants()
ReactorComputation,
which would be invalidated if this ReactorDependency were to change.