Package org.jsignal.rx
Class Effect
java.lang.Object
org.jsignal.rx.Effect
- All Implemented Interfaces:
Runnable,Disposable,EffectLike,Idable
- Direct Known Subclasses:
SideEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Cleanupsstatic final Context<Optional<EffectLike>> protected booleanprotected final Runnableprotected final intprotected static final AtomicIntegerprotected final Providerprotected final LinkedHashSet<SignalLike<?>> protected final Thread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()static Effectvoiddispose()booleanintgetId()Collection<SignalLike<?>> inthashCode()booleanstatic intnextId()voidonTrack(SignalLike<?> signal) This method should only be called inside of implementations ofTrackable.track()voidonUntrack(SignalLike<?> signal) This method should only be called inside of implementations ofTrackable.untrack()voidrun()protected void
-
Field Details
-
context
-
nextId
-
thread
-
id
protected final int id -
effect
-
cleanups
-
provider
-
signals
-
disposed
protected boolean disposed
-
-
Constructor Details
-
Effect
-
-
Method Details
-
getThread
- Specified by:
getThreadin interfaceEffectLike
-
onTrack
This method should only be called inside of implementations ofTrackable.track()- Specified by:
onTrackin interfaceEffectLike
-
onUntrack
This method should only be called inside of implementations ofTrackable.untrack()- Specified by:
onUntrackin interfaceEffectLike
-
getId
public int getId() -
dispose
public void dispose()- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposedin interfaceDisposable
-
run
public void run() -
getSignals
- Specified by:
getSignalsin interfaceEffectLike
-
getCleanups
- Specified by:
getCleanupsin interfaceEffectLike
-
run
-
clear
protected void clear() -
equals
-
hashCode
public int hashCode() -
nextId
public static int nextId() -
create
-