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
Modifier and TypeFieldDescriptionprotected final Cleanups
static final Context
<Optional<EffectLike>> protected boolean
protected final Runnable
protected final int
protected static final AtomicInteger
protected final Provider
protected final LinkedHashSet
<SignalLike<?>> protected final Thread
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clear()
static Effect
void
dispose()
boolean
int
getId()
Collection
<SignalLike<?>> int
hashCode()
boolean
static int
nextId()
void
onTrack
(SignalLike<?> signal) This method should only be called inside of implementations ofTrackable.track()
void
onUntrack
(SignalLike<?> signal) This method should only be called inside of implementations ofTrackable.untrack()
void
run()
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:
getThread
in interfaceEffectLike
-
onTrack
This method should only be called inside of implementations ofTrackable.track()
- Specified by:
onTrack
in interfaceEffectLike
-
onUntrack
This method should only be called inside of implementations ofTrackable.untrack()
- Specified by:
onUntrack
in interfaceEffectLike
-
getId
public int getId() -
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-
isDisposed
public boolean isDisposed()- Specified by:
isDisposed
in interfaceDisposable
-
run
public void run() -
getSignals
- Specified by:
getSignals
in interfaceEffectLike
-
getCleanups
- Specified by:
getCleanups
in interfaceEffectLike
-
run
-
clear
protected void clear() -
equals
-
hashCode
public int hashCode() -
nextId
public static int nextId() -
create
-