Package org.jsignal.rx
Class Effect
java.lang.Object
org.jsignal.rx.Effect
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
SideEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Cleanupsprotected booleanprotected final Runnableprotected final intprotected final LinkedHashSet<Signal<?>> protected static final AtomicIntegerprotected final Providerprotected final Thread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()static Effectstatic Effectvoiddispose()booleanintgetId()Collection<Signal<?>> Collection<Signal<?>> inthashCode()booleanstatic intnextId()voidThis method should only be called inside of implementations ofSignal.track()voidThis method should only be called inside of implementations ofSignal.untrack()voidrun()protected void
-
Field Details
-
context
-
nextId
-
thread
-
id
protected final int id -
effect
-
cleanups
-
provider
-
inbound
-
outbound
-
disposed
protected boolean disposed
-
-
Constructor Details
-
Effect
-
-
Method Details
-
getThread
-
onTrack
This method should only be called inside of implementations ofSignal.track() -
onUntrack
This method should only be called inside of implementations ofSignal.untrack() -
getId
public int getId() -
dispose
public void dispose() -
isDisposed
public boolean isDisposed() -
run
public void run() -
getInbound
-
getOutbound
-
getCleanups
-
run
-
clear
protected void clear() -
equals
-
hashCode
public int hashCode() -
nextId
public static int nextId() -
create
-
create
-