Package io.aether.utils.streams
Class Switcher2<TUp,TDown>
- java.lang.Object
-
- io.aether.utils.streams.Switcher2<TUp,TDown>
-
- All Implemented Interfaces:
io.aether.utils.ToString
public class Switcher2<TUp,TDown> extends java.lang.Object implements io.aether.utils.ToString
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSwitcher2.SplitterUpGateclassSwitcher2.SplitterUpGateHardclassSwitcher2.SplitterUpGateSoft
-
Field Summary
Fields Modifier and Type Field Description BlockMgrblockMgrGlobal
-
Constructor Summary
Constructors Constructor Description Switcher2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexistsLinks()voidflushUp()Gate<TDown,TUp>linkUp()Gate<TDown,TUp>linkUp(Gate<TUp,TDown> up)Gate<TDown,TUp>linkUpHard()Gate<TDown,TUp>linkUpHard(Gate<TUp,TDown> up)protected voidonFirstRequest(Switcher2.SplitterUpGate sup, FGate<TDown,TUp> fGate, Value<TDown> value)voidonFirstSoftWritable(io.aether.utils.interfaces.AConsumer<GateI<TUp>> consumer)voidonLink(io.aether.utils.interfaces.AConsumer<FGate<TDown,TUp>> c)protected voidsendToDown(Switcher2.SplitterUpGate sup, FGate<TDown,TUp> fGate, Value<TDown> value)protected voidsendToDown2(Switcher2.SplitterUpGate sup, FGate<TDown,TUp> fGate, Value<TDown> value)voidsendUp(Value<TUp> value)protected voidsendUp(Value<TUp> value, FGate<TDown,TUp> g, java.util.concurrent.atomic.AtomicInteger abortCounter, java.util.concurrent.atomic.AtomicBoolean finalFlag)java.lang.StringtoString()voidtoString(io.aether.utils.AString sb)
-
-
-
Field Detail
-
blockMgrGlobal
public final BlockMgr blockMgrGlobal
-
-
Method Detail
-
toString
public void toString(io.aether.utils.AString sb)
- Specified by:
toStringin interfaceio.aether.utils.ToString
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
flushUp
public void flushUp()
-
sendUp
protected void sendUp(Value<TUp> value, FGate<TDown,TUp> g, java.util.concurrent.atomic.AtomicInteger abortCounter, java.util.concurrent.atomic.AtomicBoolean finalFlag)
-
existsLinks
public boolean existsLinks()
-
onFirstSoftWritable
public void onFirstSoftWritable(io.aether.utils.interfaces.AConsumer<GateI<TUp>> consumer)
-
sendToDown2
protected void sendToDown2(Switcher2.SplitterUpGate sup, FGate<TDown,TUp> fGate, Value<TDown> value)
-
onFirstRequest
protected void onFirstRequest(Switcher2.SplitterUpGate sup, FGate<TDown,TUp> fGate, Value<TDown> value)
-
-