public interface EventFlow
EventStreamBuilder from external events or internal nodes
in the graph.| Modifier and Type | Method and Description |
|---|---|
static <T> EventStreamBuilder<T> |
mergeMap(MergeMapStreamBuilder<T> builder)
Merges and maps several
EventStream's into a single event stream of type T |
static <T> EventStreamBuilder<T> |
subscribe(Class<T> classSubscription)
Subscribes to events of type <T>.
|
static <T extends com.fluxtion.runtime.event.Event> |
subscribe(Class<T> classSubscription,
int filter)
Subscribes to events of type <T> filtering by
Event.filterId(). |
static <T extends com.fluxtion.runtime.event.Event> |
subscribe(Class<T> classSubscription,
String filter)
Subscribes to events of type <T> filtering by
Event.filterString(). |
static DoubleStreamBuilder |
subscribeToDoubleSignal(String filterId) |
static DoubleStreamBuilder |
subscribeToDoubleSignal(String filterId,
double defaultValue) |
static IntStreamBuilder |
subscribeToIntSignal(String filterId) |
static IntStreamBuilder |
subscribeToIntSignal(String filterId,
int defaultValue) |
static LongStreamBuilder |
subscribeToLongSignal(String filterId) |
static LongStreamBuilder |
subscribeToLongSignal(String filterId,
long defaultValue) |
static <T> EventStreamBuilder<T> |
subscribeToNode(T source)
Subscribes to an internal node within the processing graph and presents it as an
EventStreamBuilder
for constructing stream processing logic. |
static <T,R> EventStreamBuilder<R> |
subscribeToNodeProperty(com.fluxtion.runtime.partition.LambdaReflection.SerializableFunction<T,R> sourceProperty) |
static <R> EventStreamBuilder<R> |
subscribeToNodeProperty(com.fluxtion.runtime.partition.LambdaReflection.SerializableSupplier<R> propertySupplier) |
static EventStreamBuilder<Object> |
subscribeToSignal(String filterId) |
static <T> EventStreamBuilder<T> |
subscribeToSignal(String filterId,
Class<T> signalType) |
static <T> EventStreamBuilder<T> |
subscribeToSignal(String filterId,
Class<T> signalType,
T defaultValue) |
static <T> EventStreamBuilder<T> subscribe(Class<T> classSubscription)
StaticEventProcessor
so that if StaticEventProcessor.onEvent(Object) is called an invocation is routed
to this EventStreamT - The actual type dispatched to this EventStream by the generated StaticEventProcessorclassSubscription - A class literal describing the subscriptionEventStreamBuilder that can used to construct stream processing logicstatic <T extends com.fluxtion.runtime.event.Event> EventStreamBuilder<T> subscribe(Class<T> classSubscription, String filter)
Event.filterString(). Creates a handler method in the generated StaticEventProcessor
so that if StaticEventProcessor.onEvent(Object) is called an invocation is routed
to this EventStreamT - The actual type dispatched to this EventStream by the generated StaticEventProcessorclassSubscription - A class literal describing the subscriptionfilter - The filter string to applyEventStreamBuilder that can used to construct stream processing logicstatic <T extends com.fluxtion.runtime.event.Event> EventStreamBuilder<T> subscribe(Class<T> classSubscription, int filter)
Event.filterId(). Creates a handler method in the generated StaticEventProcessor
so that if StaticEventProcessor.onEvent(Object) is called an invocation is routed
to this EventStreamT - The actual type dispatched to this EventStream by the generated StaticEventProcessorclassSubscription - A class literal describing the subscriptionfilter - The filter int to applyEventStreamBuilder that can used to construct stream processing logicstatic EventStreamBuilder<Object> subscribeToSignal(String filterId)
static <T> EventStreamBuilder<T> subscribeToSignal(String filterId, Class<T> signalType)
static <T> EventStreamBuilder<T> subscribeToSignal(String filterId, Class<T> signalType, T defaultValue)
static IntStreamBuilder subscribeToIntSignal(String filterId)
static IntStreamBuilder subscribeToIntSignal(String filterId, int defaultValue)
static DoubleStreamBuilder subscribeToDoubleSignal(String filterId)
static DoubleStreamBuilder subscribeToDoubleSignal(String filterId, double defaultValue)
static LongStreamBuilder subscribeToLongSignal(String filterId)
static LongStreamBuilder subscribeToLongSignal(String filterId, long defaultValue)
static <T> EventStreamBuilder<T> subscribeToNode(T source)
EventStreamBuilder
for constructing stream processing logic.T - The type of the nodesource - The node to be wrapped and made head of this streamEventStreamBuilder that can used to construct stream processing logicstatic <T,R> EventStreamBuilder<R> subscribeToNodeProperty(com.fluxtion.runtime.partition.LambdaReflection.SerializableFunction<T,R> sourceProperty)
static <R> EventStreamBuilder<R> subscribeToNodeProperty(com.fluxtion.runtime.partition.LambdaReflection.SerializableSupplier<R> propertySupplier)
static <T> EventStreamBuilder<T> mergeMap(MergeMapStreamBuilder<T> builder)
EventStream's into a single event stream of type TT - The output type of the merged streambuilder - The builder defining the merge operationsEventStreamBuilder that can used to construct stream processing logicCopyright © 2022. All rights reserved.