Package com.fluxtion.ext.streaming.api
Class MergingWrapper<T>
java.lang.Object
com.fluxtion.ext.streaming.api.MergingWrapper<T>
public class MergingWrapper<T> extends java.lang.Object implements Wrapper<T>
Merges streams into a single node in the SEP execution graph. The merge will make available
the last parent that was updated via the
event()
call.- Author:
- V12 Technology Ltd.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fluxtion.ext.streaming.api.Stateful
Stateful.StatefulNumber<S>
-
Field Summary
Fields Modifier and Type Field Description java.util.List<T>
nodes
java.util.List<Wrapper>
wrappedNodes
-
Constructor Summary
Constructors Constructor Description MergingWrapper(java.lang.Class<T> clazz)
-
Method Summary
Modifier and Type Method Description T
event()
The wrapped nodejava.lang.Class<T>
eventClass()
The type of the wrapped nodestatic <T> MergingWrapper<T>
merge(Wrapper<T>... nodes)
static <T> MergingWrapper<T>
merge(java.lang.Class<T> clazz, Wrapper<? extends T>... nodes)
static <T, S extends T>
MergingWrapper<T>merge(java.lang.Class<T> clazz, S... nodes)
static <T> MergingWrapper<T>
merge(T... nodes)
<S extends T>
WrappermergeNodes(S... nodesT)
<S extends T>
voidmergeUpdate(S node)
Wrapper<T>
mergeWrappers(Wrapper<? extends T>... nodes)
void
mergeWrapperUpdate(Wrapper<? extends T> wrappedNode)
boolean
updated()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fluxtion.ext.streaming.api.Stateful
combine, deduct, setBucketCount
Methods inherited from interface com.fluxtion.ext.streaming.api.Wrapper
arg, arg, collect, console, defaultVal, filter, filter, forEach, forEach, get, group, group, id, isValidOnStart, map, map, map, map, map, map, map, map, map, map, notiferMerge, notifierOverride, notifyOnChange, publishAndReset, push, push, reset, resetAndPublish, resetNoPublish, validOnStart
-
Field Details
-
Constructor Details
-
Method Details
-
merge
-
merge
-
merge
-
merge
-
mergeWrapperUpdate
-
mergeUpdate
-
updated
public boolean updated() -
mergeWrappers
-
mergeNodes
-
event
Description copied from interface:Wrapper
The wrapped node -
eventClass
Description copied from interface:Wrapper
The type of the wrapped node- Specified by:
eventClass
in interfaceWrapper<T>
- Returns:
- wrapped node class
-