java.lang.Object
net.pincette.rs.ProcessorBase<T,T>
net.pincette.rs.Split<T>
- Type Parameters:
T
- the value type.
- All Implemented Interfaces:
Flow.Processor<T,
,T> Flow.Publisher<T>
,Flow.Subscriber<T>
When the upstream or downstream could cause races, this processor serializes everything. It uses
a shared thread.
- Since:
- 3.0
- Author:
- Werner Donné
-
Field Summary
Fields inherited from class net.pincette.rs.ProcessorBase
subscriber, subscription
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
emit
(long number) void
void
void
static <T> Flow.Processor<T,
T> split()
Methods inherited from class net.pincette.rs.ProcessorBase
cancel, complete, getError, onSubscribe, setError, subscribe
-
Constructor Details
-
Split
public Split()
-
-
Method Details
-
split
-
emit
protected void emit(long number) - Specified by:
emit
in classProcessorBase<T,
T>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceFlow.Subscriber<T>
- Overrides:
onComplete
in classProcessorBase<T,
T>
-
onError
- Specified by:
onError
in interfaceFlow.Subscriber<T>
- Overrides:
onError
in classProcessorBase<T,
T>
-
onNext
-