Index
All Classes and Interfaces|All Packages|Serialized Form
A
- advance() - Method in class com.machinezoo.hookless.ReactiveStateMachine
- alias(String) - Method in class com.machinezoo.hookless.util.OwnerTrace
- arm(Collection<ReactiveVariable.Version>) - Method in class com.machinezoo.hookless.ReactiveTrigger
- armed() - Method in class com.machinezoo.hookless.ReactiveTrigger
B
- block() - Static method in class com.machinezoo.hookless.CurrentReactiveScope
-
Mark the current reactive computation as reactively blocking.
- block() - Static method in exception com.machinezoo.hookless.ReactiveBlockingException
- block() - Method in class com.machinezoo.hookless.ReactiveScope
- block(String) - Static method in exception com.machinezoo.hookless.ReactiveBlockingException
-
Marks the current
ReactiveScope
as blocking and then throwsReactiveBlockingException
with the specified message. - block(String, Throwable) - Static method in exception com.machinezoo.hookless.ReactiveBlockingException
-
Marks the current
ReactiveScope
as blocking and then throwsReactiveBlockingException
with the specified message and cause. - block(Throwable) - Static method in exception com.machinezoo.hookless.ReactiveBlockingException
-
Marks the current
ReactiveScope
as blocking and then throwsReactiveBlockingException
with the specified cause. - blocked() - Static method in class com.machinezoo.hookless.CurrentReactiveScope
-
Returns
true
if the current reactive computation is reactively blocking. - blocked() - Method in class com.machinezoo.hookless.ReactiveScope
- blocking() - Method in class com.machinezoo.hookless.ReactiveValue
-
Gets the reactive blocking flag from this
ReactiveValue
.
C
- callback() - Method in class com.machinezoo.hookless.ReactiveTrigger
- callback(Runnable) - Method in class com.machinezoo.hookless.ReactiveTrigger
- cancelled() - Method in class com.machinezoo.hookless.ReactiveFuture
- capture(Supplier<T>) - Static method in class com.machinezoo.hookless.ReactiveValue
-
Captures implicit reactive output of provided
Supplier
and returns it encapsulated in newReactiveValue
. - close() - Method in class com.machinezoo.hookless.ReactiveTrigger
- closed() - Method in class com.machinezoo.hookless.ReactiveTrigger
- com.machinezoo.hookless - module com.machinezoo.hookless
-
Hookless is a reactive programming library for Java based on invalidate-then-refresh pattern and implemented via thread-local context object.
- com.machinezoo.hookless - package com.machinezoo.hookless
-
Reactive primitives and core reactive classes.
- com.machinezoo.hookless.util - package com.machinezoo.hookless.util
-
Reactive versions of classes from
java.util
. - common() - Static method in class com.machinezoo.hookless.ReactiveExecutor
- completable() - Method in class com.machinezoo.hookless.ReactiveFuture
- ConsistentRandom - Class in com.machinezoo.hookless.util
-
Provider of
Random
instances that return the same values for the same seeding key. - ConsistentRandom() - Constructor for class com.machinezoo.hookless.util.ConsistentRandom
- current() - Static method in class com.machinezoo.hookless.ReactiveExecutor
- current() - Static method in class com.machinezoo.hookless.ReactiveScope
- current() - Static method in class com.machinezoo.hookless.ReactiveThread
- CurrentReactiveScope - Class in com.machinezoo.hookless
-
Convenience methods to access current
ReactiveScope
. - CurrentReactiveScope() - Constructor for class com.machinezoo.hookless.CurrentReactiveScope
D
- daemon() - Method in class com.machinezoo.hookless.ReactiveThread
- daemon(boolean) - Method in class com.machinezoo.hookless.ReactiveThread
- done() - Method in class com.machinezoo.hookless.ReactiveFuture
E
- enter() - Method in class com.machinezoo.hookless.ReactiveScope
- equality() - Method in class com.machinezoo.hookless.ReactiveVariable
-
Returns
true
if thisReactiveVariable
performs full equality check on assignment. - equality() - Method in class com.machinezoo.hookless.ReactiveWorker
- equality(boolean) - Method in class com.machinezoo.hookless.ReactiveVariable
-
Configures full or reference equality.
- equality(boolean) - Method in class com.machinezoo.hookless.ReactiveWorker
- equals(Object) - Method in class com.machinezoo.hookless.ReactiveValue
-
Compares this
ReactiveValue
to another object for equality. - equals(Object) - Method in class com.machinezoo.hookless.ReactiveVariable.Version
-
Compares this version with another
ReactiveVariable.Version
. - exception() - Method in class com.machinezoo.hookless.ReactiveValue
-
Gets the exception component of this
ReactiveValue
. - execute(Runnable) - Method in class com.machinezoo.hookless.ReactiveExecutor
- executor() - Method in class com.machinezoo.hookless.ReactiveThread
- executor() - Method in class com.machinezoo.hookless.ReactiveWorker
- executor(Executor) - Method in class com.machinezoo.hookless.ReactiveThread
- executor(Executor) - Method in class com.machinezoo.hookless.ReactiveWorker
F
- failed() - Method in class com.machinezoo.hookless.ReactiveFuture
- fill(Span) - Method in class com.machinezoo.hookless.util.OwnerTrace
- fire() - Method in class com.machinezoo.hookless.ReactiveTrigger
- fired() - Method in class com.machinezoo.hookless.ReactiveTrigger
- freeze(Object, Supplier<T>) - Static method in class com.machinezoo.hookless.CurrentReactiveScope
-
Freezes result of specified computation.
- freeze(Object, Supplier<T>) - Method in class com.machinezoo.hookless.ReactiveFreezes
- freeze(Object, Supplier<T>) - Method in class com.machinezoo.hookless.ReactiveScope
- freezes() - Method in class com.machinezoo.hookless.ReactiveScope
- freezes(ReactiveFreezes) - Method in class com.machinezoo.hookless.ReactiveScope
G
- generateId() - Method in class com.machinezoo.hookless.util.OwnerTrace
- get() - Method in class com.machinezoo.hookless.ReactiveFuture
- get() - Method in class com.machinezoo.hookless.ReactiveLazy
- get() - Method in class com.machinezoo.hookless.ReactiveValue
-
Unpacks explicit reactive output represented by this
ReactiveValue
into implicit reactive output. - get() - Method in class com.machinezoo.hookless.ReactiveVariable
-
Returns the value held by this
ReactiveVariable
. - get() - Method in class com.machinezoo.hookless.ReactiveWorker
- get(Object) - Method in class com.machinezoo.hookless.ReactiveFreezes
- get(Object) - Method in class com.machinezoo.hookless.ReactivePins
- getEventCount() - Method in class com.machinezoo.hookless.ReactiveExecutor
- getNow(T) - Method in class com.machinezoo.hookless.ReactiveFuture
H
- handler() - Method in class com.machinezoo.hookless.ReactiveThread
- handler(BiConsumer<ReactiveThread, Throwable>) - Method in class com.machinezoo.hookless.ReactiveThread
- handlerDefault() - Static method in class com.machinezoo.hookless.ReactiveThread
- handlerDefault(BiConsumer<ReactiveThread, Throwable>) - Static method in class com.machinezoo.hookless.ReactiveThread
- hashCode() - Method in class com.machinezoo.hookless.ReactiveTrigger
- hashCode() - Method in class com.machinezoo.hookless.ReactiveValue
-
Computes hash code of this
ReactiveValue
. - hashCode() - Method in class com.machinezoo.hookless.ReactiveVariable
-
Returns identity hash code.
- hashCode() - Method in class com.machinezoo.hookless.ReactiveVariable.Version
-
Calculates hash code of this version.
I
- ignore() - Static method in class com.machinezoo.hookless.ReactiveScope
- initial(ReactiveValue<T>) - Method in class com.machinezoo.hookless.ReactiveWorker
- initial(T) - Method in class com.machinezoo.hookless.ReactiveWorker
- invalidate() - Method in class com.machinezoo.hookless.ReactivePins
K
- keepalive(Object) - Method in class com.machinezoo.hookless.ReactiveVariable
-
Adds strong reference to the specified target object.
- keys() - Method in class com.machinezoo.hookless.ReactiveFreezes
- keys() - Method in class com.machinezoo.hookless.ReactivePins
N
- nonblocking() - Static method in class com.machinezoo.hookless.ReactiveScope
- number() - Method in class com.machinezoo.hookless.ReactiveVariable.Version
-
Returns the version number of the version this object represents.
O
- of(Object...) - Static method in class com.machinezoo.hookless.util.ConsistentRandom
- of(T) - Static method in class com.machinezoo.hookless.util.OwnerTrace
- output() - Method in class com.machinezoo.hookless.ReactiveStateMachine
- OwnerTrace<T> - Class in com.machinezoo.hookless.util
-
Trace of object ancestors for easier debugging and tracing.
P
- parent() - Method in class com.machinezoo.hookless.ReactiveFreezes
- parent() - Method in class com.machinezoo.hookless.ReactivePins
- parent(Object) - Method in class com.machinezoo.hookless.util.OwnerTrace
- pin(Object, Supplier<T>) - Static method in class com.machinezoo.hookless.CurrentReactiveScope
-
Pins result of specified computation.
- pin(Object, Supplier<T>) - Method in class com.machinezoo.hookless.ReactivePins
- pin(Object, Supplier<T>) - Method in class com.machinezoo.hookless.ReactiveScope
- pins() - Method in class com.machinezoo.hookless.ReactiveScope
- pins(ReactivePins) - Method in class com.machinezoo.hookless.ReactiveScope
R
- ReactiveBlockingException - Exception in com.machinezoo.hookless
-
Default exception to throw when reactive code needs to reactively block.
- ReactiveBlockingException() - Constructor for exception com.machinezoo.hookless.ReactiveBlockingException
-
Constructs new
ReactiveBlockingException
. - ReactiveBlockingException(String) - Constructor for exception com.machinezoo.hookless.ReactiveBlockingException
-
Constructs new
ReactiveBlockingException
with the specified message. - ReactiveBlockingException(String, Throwable) - Constructor for exception com.machinezoo.hookless.ReactiveBlockingException
-
Constructs new
ReactiveBlockingException
with the specified message and cause. - ReactiveBlockingException(Throwable) - Constructor for exception com.machinezoo.hookless.ReactiveBlockingException
-
Constructs new
ReactiveBlockingException
with the specified cause. - ReactiveExecutor - Class in com.machinezoo.hookless
-
Latency-optimized executor designed for reactive programs.
- ReactiveExecutor() - Constructor for class com.machinezoo.hookless.ReactiveExecutor
- ReactiveExecutor(int) - Constructor for class com.machinezoo.hookless.ReactiveExecutor
- ReactiveExecutor(int, ThreadFactory) - Constructor for class com.machinezoo.hookless.ReactiveExecutor
- ReactiveFreezes - Class in com.machinezoo.hookless
-
Container for frozen outputs of reactive computations.
- ReactiveFreezes() - Constructor for class com.machinezoo.hookless.ReactiveFreezes
- ReactiveFuture<T> - Class in com.machinezoo.hookless
-
Reactive wrapper for
CompletableFuture
. - ReactiveFuture() - Constructor for class com.machinezoo.hookless.ReactiveFuture
- ReactiveLazy<T> - Class in com.machinezoo.hookless
-
Single-value synchronous cache for results of reactive computations.
- ReactiveLazy(Supplier<T>) - Constructor for class com.machinezoo.hookless.ReactiveLazy
- ReactivePins - Class in com.machinezoo.hookless
-
Container for pinned outputs of reactive computations.
- ReactivePins() - Constructor for class com.machinezoo.hookless.ReactivePins
- ReactiveScope - Class in com.machinezoo.hookless
-
Thread-local context for reactive computations that collects reactive dependencies.
- ReactiveScope() - Constructor for class com.machinezoo.hookless.ReactiveScope
- ReactiveStateMachine<T> - Class in com.machinezoo.hookless
-
Monitoring and control over another reactive computation.
- ReactiveThread - Class in com.machinezoo.hookless
-
Reactive substitute for Java's
Thread
. - ReactiveThread() - Constructor for class com.machinezoo.hookless.ReactiveThread
- ReactiveThread(Runnable) - Constructor for class com.machinezoo.hookless.ReactiveThread
- ReactiveTrigger - Class in com.machinezoo.hookless
-
Callback for changes in
ReactiveVariable
s. - ReactiveTrigger() - Constructor for class com.machinezoo.hookless.ReactiveTrigger
- ReactiveValue<T> - Class in com.machinezoo.hookless
-
Container for output of reactive computation consisting of return value, exception, and reactive blocking flag.
- ReactiveValue() - Constructor for class com.machinezoo.hookless.ReactiveValue
-
Constructs new
ReactiveValue
. - ReactiveValue(Throwable) - Constructor for class com.machinezoo.hookless.ReactiveValue
-
Constructs new
ReactiveValue
from exception. - ReactiveValue(Throwable, boolean) - Constructor for class com.machinezoo.hookless.ReactiveValue
-
Constructs new
ReactiveValue
from exception and blocking flag. - ReactiveValue(T) - Constructor for class com.machinezoo.hookless.ReactiveValue
-
Constructs new
ReactiveValue
from return value. - ReactiveValue(T, boolean) - Constructor for class com.machinezoo.hookless.ReactiveValue
-
Constructs new
ReactiveValue
from return value and blocking flag. - ReactiveValue(T, Throwable, boolean) - Constructor for class com.machinezoo.hookless.ReactiveValue
-
Constructs new
ReactiveValue
from return value, exception, and reactive blocking flag. - ReactiveVariable<T> - Class in com.machinezoo.hookless
-
Reactive data source holding single
ReactiveValue
. - ReactiveVariable() - Constructor for class com.machinezoo.hookless.ReactiveVariable
-
Creates new instance with
null
value. - ReactiveVariable(ReactiveValue<T>) - Constructor for class com.machinezoo.hookless.ReactiveVariable
-
Creates new instance holding specified
ReactiveValue
. - ReactiveVariable(T) - Constructor for class com.machinezoo.hookless.ReactiveVariable
-
Creates new instance holding specified
value
. - ReactiveVariable.Version - Class in com.machinezoo.hookless
-
Reference to particular version of
ReactiveVariable
. - ReactiveWorker<T> - Class in com.machinezoo.hookless
-
Single-value asynchronous cache for results of reactive computations.
- ReactiveWorker() - Constructor for class com.machinezoo.hookless.ReactiveWorker
- ReactiveWorker(Supplier<T>) - Constructor for class com.machinezoo.hookless.ReactiveWorker
- result() - Method in class com.machinezoo.hookless.ReactiveValue
-
Gets the return value component of this
ReactiveValue
. - run() - Method in class com.machinezoo.hookless.ReactiveThread
- run(ReactiveValue<Void>, Runnable) - Static method in class com.machinezoo.hookless.ReactiveStateMachine
- run(Runnable) - Static method in class com.machinezoo.hookless.ReactiveStateMachine
- runnable() - Method in class com.machinezoo.hookless.ReactiveThread
- runnable(Runnable) - Method in class com.machinezoo.hookless.ReactiveThread
- runReactive(Runnable) - Static method in class com.machinezoo.hookless.ReactiveFuture
- runReactive(Runnable, Executor) - Static method in class com.machinezoo.hookless.ReactiveFuture
S
- same(ReactiveValue<?>) - Method in class com.machinezoo.hookless.ReactiveValue
-
Checks reference equality between two
ReactiveValue
instances. - set(Object, ReactiveValue<?>) - Method in class com.machinezoo.hookless.ReactiveFreezes
- set(Object, ReactiveValue<?>) - Method in class com.machinezoo.hookless.ReactivePins
- set(T) - Method in class com.machinezoo.hookless.ReactiveVariable
-
Sets current value of this
ReactiveVariable
. - start() - Method in class com.machinezoo.hookless.ReactiveThread
- stop() - Method in class com.machinezoo.hookless.ReactiveThread
- supplier() - Method in class com.machinezoo.hookless.ReactiveWorker
- supplier(Supplier<T>) - Method in class com.machinezoo.hookless.ReactiveWorker
- supply() - Method in class com.machinezoo.hookless.ReactiveWorker
- supply(ReactiveValue<T>, Supplier<T>) - Static method in class com.machinezoo.hookless.ReactiveStateMachine
- supply(Supplier<T>) - Static method in class com.machinezoo.hookless.ReactiveStateMachine
- supplyReactive(Supplier<T>) - Static method in class com.machinezoo.hookless.ReactiveFuture
- supplyReactive(Supplier<T>, Executor) - Static method in class com.machinezoo.hookless.ReactiveFuture
T
- tag(String, Object) - Method in class com.machinezoo.hookless.util.OwnerTrace
- target() - Method in class com.machinezoo.hookless.util.OwnerTrace
- toString() - Method in class com.machinezoo.hookless.ReactiveFreezes
- toString() - Method in class com.machinezoo.hookless.ReactiveFuture
- toString() - Method in class com.machinezoo.hookless.ReactiveLazy
- toString() - Method in class com.machinezoo.hookless.ReactivePins
- toString() - Method in class com.machinezoo.hookless.ReactiveScope
- toString() - Method in class com.machinezoo.hookless.ReactiveStateMachine
- toString() - Method in class com.machinezoo.hookless.ReactiveThread
- toString() - Method in class com.machinezoo.hookless.ReactiveTrigger
- toString() - Method in class com.machinezoo.hookless.ReactiveValue
-
Returns a string representation of this
ReactiveValue
. - toString() - Method in class com.machinezoo.hookless.ReactiveVariable
-
Returns diagnostic string representation of this
ReactiveVariable
. - toString() - Method in class com.machinezoo.hookless.ReactiveVariable.Version
-
Returns diagnostic string representation of this version.
- toString() - Method in class com.machinezoo.hookless.ReactiveWorker
- toString() - Method in class com.machinezoo.hookless.util.OwnerTrace
V
- valid() - Method in class com.machinezoo.hookless.ReactivePins
- valid() - Method in class com.machinezoo.hookless.ReactiveStateMachine
- value() - Method in class com.machinezoo.hookless.ReactiveVariable
-
Reads the current
ReactiveValue
from thisReactiveVariable
and sets up reactive dependency. - value(ReactiveValue<T>) - Method in class com.machinezoo.hookless.ReactiveVariable
-
Sets current
ReactiveValue
of thisReactiveVariable
and notifies dependent reactive computations. - variable() - Method in class com.machinezoo.hookless.ReactiveVariable.Version
-
Returns the
ReactiveVariable
this is a version of. - version() - Method in class com.machinezoo.hookless.ReactiveVariable
-
Returns current version of this
ReactiveVariable
. - Version(ReactiveVariable<?>) - Constructor for class com.machinezoo.hookless.ReactiveVariable.Version
-
Creates new
ReactiveVariable.Version
object representing current version ofReactiveVariable
. - Version(ReactiveVariable<?>, long) - Constructor for class com.machinezoo.hookless.ReactiveVariable.Version
-
Creates new
ReactiveVariable.Version
object representing specified version of theReactiveVariable
. - versions() - Method in class com.machinezoo.hookless.ReactiveScope
W
- watch(ReactiveVariable<?>) - Method in class com.machinezoo.hookless.ReactiveScope
- watch(ReactiveVariable<?>, long) - Method in class com.machinezoo.hookless.ReactiveScope
- wrap(CompletableFuture<T>) - Static method in class com.machinezoo.hookless.ReactiveFuture
All Classes and Interfaces|All Packages|Serialized Form