java.lang.Object
swim.system.DownlinkView
swim.system.warp.WarpDownlinkView
swim.system.downlink.MapDownlinkView<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> Map<K,,V> SortedMap<K,,V> Downlink,MapDownlink<K,,V> Link,WarpDownlink,WarpLink,Observable<Object>,ObservableIterableMap<K,,V> ObservableMap<K,,V> ObservableOrderedMap<K,,V> ObservableSortedMap<K,,V> Inlet<Map<K,,V>> MapInlet<K,,V, Map<K, V>> MapOutlet<K,,V, MapDownlink<K, V>> Outlet<MapDownlink<K,,V>> IterableMap<K,,V> Log,OrderedMap<K,V>
- Direct Known Subclasses:
JoinMapLaneDownlink
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashTrieMap<K,KeyEffect> protected MapDownlinkModelprotected HashTrieMap<K,KeyOutlet<K, V>> protected Inlet<? super MapDownlink<K,V>>[] protected static final intprotected intFields inherited from class swim.system.warp.WarpDownlinkView
body, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, prio, rateFields inherited from class swim.system.DownlinkView
cellContext, observers, stage -
Constructor Summary
ConstructorsConstructorDescriptionMapDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, int flags, Form<K> keyForm, Form<V> valueForm, Object observers) MapDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, Form<K> keyForm, Form<V> valueForm) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidConnects thisInletto anOutletfrom which it will acquire its state.voidbindOutput(Inlet<? super MapDownlink<K, V>> output) Adds anoutputto the set ofInlets that depend on the state of thisOutlet.voidclear()voidclose()Comparator<? super K>booleancontainsKey(Object keyObject) Returnstrueif the current state of thisMapOutletcontains the givenkey; otherwise returnsfalse.booleancontainsValue(Object valueObject) voiddecohere()voidMarks thisOutlet—and alloutputsthat depend on the state of thisOutlet—as having decoherent state.voiddecohereInputKey(K key, KeyEffect effect) Marks thisMapOutletas needing aneffectapplied to a givenkey.voiddecohereKey(K key, KeyEffect effect) voidMarks thisInlet—and theStreamletto which thisInletis attached—as having decoherent state.voiddecohereOutputKey(K key, KeyEffect effect) Marks thisMapInletas needing aneffectapplied to a givenkey.didConnect(DidConnect didConnect) protected voidprotected voiddidDecohereKey(K key, KeyEffect effect) didDisconnect(DidDisconnect didDisconnect) didReceive(DidReceive didReceive) protected voiddidRecohere(int version) protected voiddidRecohereKey(K key, KeyEffect effect, int version) didRemove(DidRemoveKey<K, V> didRemove) didUpdate(DidUpdateKey<K, V> didUpdate) voidDisconnects allInlets dominated by thisInletin the dataflow dependency graph.voidDisconnects allOutlets dominated by thisInletin the dataflow graph.booleandispatchDidClear(boolean preemptive) booleandispatchDidDrop(int lower, boolean preemptive) booleandispatchDidRemove(K key, V oldValue, boolean preemptive) booleandispatchDidTake(int upper, boolean preemptive) booleandispatchDidUpdate(K key, V newValue, V oldValue, boolean preemptive) booleandispatchWillClear(boolean preemptive) booleandispatchWillDrop(int lower, boolean preemptive) booleandispatchWillRemove(K key, boolean preemptive) booleandispatchWillTake(int upper, boolean preemptive) dispatchWillUpdate(K key, V newValue, boolean preemptive) voidvoiddownlinkDidDrop(int lower) voiddownlinkDidRemove(K key, V oldValue) voiddownlinkDidRemoveValue(Value key, Value oldValue) voiddownlinkDidTake(int upper) voiddownlinkDidUpdate(K key, V newValue, V oldValue) voiddownlinkDidUpdateValue(Value key, Value newValue, Value oldValue) voidvoiddownlinkWillDrop(int lower) voiddownlinkWillRemove(K key) voidvoiddownlinkWillTake(int upper) downlinkWillUpdate(K key, V newValue) downlinkWillUpdateValue(Value key, Value newValue) voiddrop(int lower) entrySet()firstKey()get()Returns the current state of thisOutlet.Returns the value assocaited with the givenkeyin the current state of thisMapOutlet, if defined; otherwise returnsnull.getIndex(int index) OrderedMap<K,V> intinput()Returns theOutletfrom which thisInletacquires its state; returnsnullif thisInletis disconnected.booleanisEmpty()final booleanisStateful(boolean isStateful) iterator()keepLinked(boolean keepLinked) keepSynced(boolean keepSynced) <K2> MapDownlinkView<K2,V> keyForm()<K2> MapDownlinkView<K2,V> Returns anIteratorover the keys in the current state of thisMapOutlet.keySet()lastKey()protected voidprotected voidonDecohereKey(K key, KeyEffect effect) protected voidonRecohere(int version) protected voidonRecohereKey(K key, KeyEffect effect, int version) open()Returns anOutletthat updates when the specifiedkeyupdates.Iterator<Inlet<? super MapDownlink<K,V>>> Returns anIteratorover the set ofInlets that depend on the state of thisOutlet.previousEntry(Object keyObject) previousKey(Object keyObject) previousValue(Object keyObject) prio(float prio) voidrate(float rate) voidrecohere(int version) voidrecohereInput(int version) Updates the state of thisOutletto make it consistent with the targetversion.voidrecohereInputKey(K key, int version) Updates the state of an individualkeyin thisMapOutletto make it consistent with the targetversion.voidrecohereKey(K key, int version) voidrecohereOutput(int version) Updates the state of thisInletto make it consistent with thetargetversion.voidrecohereOutputKey(K key, int version) Updates the state of an individualkeyin thisMapInletto make it consistent with the targetversion.intsize()OrderedMap<K,V> OrderedMap<K,V> voidtake(int upper) protected ObjecttypesafeObservers(Object observers) voidDisconnects thisInletfrom its inputOutlet, if connected.voidunbindOutput(Inlet<? super MapDownlink<K, V>> output) Removes anoutputfrom the set ofInlets that depend on the state of thisOutlet.voidDisconnects all outputs from thisOutletby invokingInlet.unbindInput()on eachIneltthat depends on the state of thisOutlet.<V2> MapDownlinkView<K,V2> valueClass(Class<V2> valueClass) <V2> MapDownlinkView<K,V2> values()willCommand(WillCommand willCommand) protected voidprotected voidwillDecohereKey(K key, KeyEffect effect) willReceive(WillReceive willReceive) protected voidwillRecohere(int version) protected voidwillRecohereKey(K key, KeyEffect effect, int version) willRemove(WillRemoveKey<K> willRemove) willUnlink(WillUnlink willUnlink) willUpdate(WillUpdateKey<K, V> willUpdate) Methods inherited from class swim.system.warp.WarpDownlinkView
body, command, command, command, command, dispatchDidLink, dispatchDidReceive, dispatchDidSync, dispatchDidUnlink, dispatchWillCommand, dispatchWillLink, dispatchWillReceive, dispatchWillSync, dispatchWillUnlink, downlinkDidLink, downlinkDidReceive, downlinkDidSync, downlinkDidUnlink, downlinkWillCommand, downlinkWillLink, downlinkWillReceive, downlinkWillSync, downlinkWillUnlink, hostUri, keepLinked, keepSynced, laneUri, meshUri, nodeUri, prio, rateMethods inherited from class swim.system.DownlinkView
cellContext, cipherSuite, debug, dispatchDidClose, dispatchDidConnect, dispatchDidDisconnect, dispatchDidFail, downlinkDidClose, downlinkDidConnect, downlinkDidDisconnect, downlinkDidFail, error, fail, info, isConnected, isRemote, isSecure, localAddress, localCertificates, localIdentity, localPrincipal, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol, stage, trace, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface swim.api.Link
cipherSuite, hostUri, isConnected, isRemote, isSecure, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, nodeUri, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocolMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface swim.api.warp.WarpDownlink
body, command, command, command, command, keepLinked, keepSynced, prio, rate
-
Field Details
-
keyForm
-
valueForm
-
model
-
input
-
effects
-
outlets
-
outputs
-
version
protected int version -
STATEFUL
protected static final int STATEFUL- See Also:
-
-
Constructor Details
-
MapDownlinkView
-
MapDownlinkView
-
-
Method Details
-
downlinkModel
- Specified by:
downlinkModelin classWarpDownlinkView
-
hostUri
- Specified by:
hostUriin interfaceMapDownlink<K,V> - Specified by:
hostUriin interfaceWarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
hostUri
- Specified by:
hostUriin interfaceMapDownlink<K,V> - Specified by:
hostUriin interfaceWarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
nodeUri
- Specified by:
nodeUriin interfaceMapDownlink<K,V> - Specified by:
nodeUriin interfaceWarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
nodeUri
- Specified by:
nodeUriin interfaceMapDownlink<K,V> - Specified by:
nodeUriin interfaceWarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
laneUri
- Specified by:
laneUriin interfaceMapDownlink<K,V> - Specified by:
laneUriin interfaceWarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
laneUri
- Specified by:
laneUriin interfaceMapDownlink<K,V> - Specified by:
laneUriin interfaceWarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
prio
- Specified by:
prioin interfaceMapDownlink<K,V> - Specified by:
prioin interfaceWarpDownlink- Specified by:
prioin classWarpDownlinkView
-
rate
- Specified by:
ratein interfaceMapDownlink<K,V> - Specified by:
ratein interfaceWarpDownlink- Specified by:
ratein classWarpDownlinkView
-
body
- Specified by:
bodyin interfaceMapDownlink<K,V> - Specified by:
bodyin interfaceWarpDownlink- Specified by:
bodyin classWarpDownlinkView
-
keepLinked
- Specified by:
keepLinkedin interfaceMapDownlink<K,V> - Specified by:
keepLinkedin interfaceWarpDownlink- Specified by:
keepLinkedin classWarpDownlinkView
-
keepSynced
- Specified by:
keepSyncedin interfaceMapDownlink<K,V> - Specified by:
keepSyncedin interfaceWarpDownlink- Specified by:
keepSyncedin classWarpDownlinkView
-
isStateful
public final boolean isStateful()- Specified by:
isStatefulin interfaceMapDownlink<K,V>
-
isStateful
- Specified by:
isStatefulin interfaceMapDownlink<K,V>
-
keyForm
- Specified by:
keyFormin interfaceMapDownlink<K,V>
-
keyForm
- Specified by:
keyFormin interfaceMapDownlink<K,V>
-
keyClass
- Specified by:
keyClassin interfaceMapDownlink<K,V>
-
valueForm
- Specified by:
valueFormin interfaceMapDownlink<K,V>
-
valueForm
- Specified by:
valueFormin interfaceMapDownlink<K,V>
-
valueClass
- Specified by:
valueClassin interfaceMapDownlink<K,V>
-
typesafeObservers
-
observe
- Specified by:
observein interfaceDownlink- Specified by:
observein interfaceLink- Specified by:
observein interfaceMapDownlink<K,V> - Specified by:
observein interfaceObservable<K>- Specified by:
observein interfaceObservableMap<K,V> - Specified by:
observein interfaceObservableSortedMap<K,V> - Specified by:
observein interfaceWarpDownlink- Overrides:
observein classWarpDownlinkView
-
unobserve
- Specified by:
unobservein interfaceDownlink- Specified by:
unobservein interfaceLink- Specified by:
unobservein interfaceMapDownlink<K,V> - Specified by:
unobservein interfaceObservable<K>- Specified by:
unobservein interfaceObservableMap<K,V> - Specified by:
unobservein interfaceObservableSortedMap<K,V> - Specified by:
unobservein interfaceWarpDownlink- Overrides:
unobservein classWarpDownlinkView
-
willUpdate
- Specified by:
willUpdatein interfaceMapDownlink<K,V> - Specified by:
willUpdatein interfaceObservableMap<K,V>
-
didUpdate
- Specified by:
didUpdatein interfaceMapDownlink<K,V> - Specified by:
didUpdatein interfaceObservableMap<K,V>
-
willRemove
- Specified by:
willRemovein interfaceMapDownlink<K,V> - Specified by:
willRemovein interfaceObservableMap<K,V>
-
didRemove
- Specified by:
didRemovein interfaceMapDownlink<K,V> - Specified by:
didRemovein interfaceObservableMap<K,V>
-
willDrop
- Specified by:
willDropin interfaceMapDownlink<K,V> - Specified by:
willDropin interfaceObservableSortedMap<K,V>
-
didDrop
- Specified by:
didDropin interfaceMapDownlink<K,V> - Specified by:
didDropin interfaceObservableSortedMap<K,V>
-
willTake
- Specified by:
willTakein interfaceMapDownlink<K,V> - Specified by:
willTakein interfaceObservableSortedMap<K,V>
-
didTake
- Specified by:
didTakein interfaceMapDownlink<K,V> - Specified by:
didTakein interfaceObservableSortedMap<K,V>
-
willClear
- Specified by:
willClearin interfaceMapDownlink<K,V> - Specified by:
willClearin interfaceObservableMap<K,V>
-
didClear
- Specified by:
didClearin interfaceMapDownlink<K,V> - Specified by:
didClearin interfaceObservableMap<K,V>
-
willReceive
- Specified by:
willReceivein interfaceMapDownlink<K,V> - Specified by:
willReceivein interfaceWarpDownlink- Specified by:
willReceivein classWarpDownlinkView
-
didReceive
- Specified by:
didReceivein interfaceMapDownlink<K,V> - Specified by:
didReceivein interfaceWarpDownlink- Specified by:
didReceivein classWarpDownlinkView
-
willCommand
- Specified by:
willCommandin interfaceMapDownlink<K,V> - Specified by:
willCommandin interfaceWarpDownlink- Specified by:
willCommandin classWarpDownlinkView
-
willLink
- Specified by:
willLinkin interfaceMapDownlink<K,V> - Specified by:
willLinkin interfaceWarpDownlink- Specified by:
willLinkin classWarpDownlinkView
-
didLink
- Specified by:
didLinkin interfaceMapDownlink<K,V> - Specified by:
didLinkin interfaceWarpDownlink- Specified by:
didLinkin classWarpDownlinkView
-
willSync
- Specified by:
willSyncin interfaceMapDownlink<K,V> - Specified by:
willSyncin interfaceWarpDownlink- Specified by:
willSyncin classWarpDownlinkView
-
didSync
- Specified by:
didSyncin interfaceMapDownlink<K,V> - Specified by:
didSyncin interfaceWarpDownlink- Specified by:
didSyncin classWarpDownlinkView
-
willUnlink
- Specified by:
willUnlinkin interfaceMapDownlink<K,V> - Specified by:
willUnlinkin interfaceWarpDownlink- Specified by:
willUnlinkin classWarpDownlinkView
-
didUnlink
- Specified by:
didUnlinkin interfaceMapDownlink<K,V> - Specified by:
didUnlinkin interfaceWarpDownlink- Specified by:
didUnlinkin classWarpDownlinkView
-
didConnect
- Specified by:
didConnectin interfaceDownlink- Specified by:
didConnectin interfaceMapDownlink<K,V> - Specified by:
didConnectin interfaceWarpDownlink- Specified by:
didConnectin classWarpDownlinkView
-
didDisconnect
- Specified by:
didDisconnectin interfaceDownlink- Specified by:
didDisconnectin interfaceMapDownlink<K,V> - Specified by:
didDisconnectin interfaceWarpDownlink- Specified by:
didDisconnectin classWarpDownlinkView
-
didClose
- Specified by:
didClosein interfaceDownlink- Specified by:
didClosein interfaceMapDownlink<K,V> - Specified by:
didClosein interfaceWarpDownlink- Specified by:
didClosein classWarpDownlinkView
-
didFail
- Specified by:
didFailin interfaceDownlink- Specified by:
didFailin interfaceMapDownlink<K,V> - Specified by:
didFailin interfaceWarpDownlink- Specified by:
didFailin classWarpDownlinkView
-
downlinkWillUpdateValue
-
downlinkDidUpdateValue
-
downlinkWillUpdate
-
downlinkDidUpdate
-
downlinkWillRemoveValue
-
downlinkDidRemoveValue
-
downlinkWillRemove
-
downlinkDidRemove
-
downlinkWillDrop
public void downlinkWillDrop(int lower) -
downlinkDidDrop
public void downlinkDidDrop(int lower) -
downlinkWillTake
public void downlinkWillTake(int upper) -
downlinkDidTake
public void downlinkDidTake(int upper) -
downlinkWillClear
public void downlinkWillClear() -
downlinkDidClear
public void downlinkDidClear() -
dispatchWillUpdate
-
dispatchDidUpdate
-
dispatchWillRemove
-
dispatchDidRemove
-
dispatchWillDrop
public boolean dispatchWillDrop(int lower, boolean preemptive) -
dispatchDidDrop
public boolean dispatchDidDrop(int lower, boolean preemptive) -
dispatchWillTake
public boolean dispatchWillTake(int upper, boolean preemptive) -
dispatchDidTake
public boolean dispatchDidTake(int upper, boolean preemptive) -
dispatchWillClear
public boolean dispatchWillClear(boolean preemptive) -
dispatchDidClear
public boolean dispatchDidClear(boolean preemptive) -
createDownlinkModel
- Specified by:
createDownlinkModelin classWarpDownlinkView
-
open
- Specified by:
openin interfaceDownlink- Specified by:
openin interfaceMapDownlink<K,V> - Specified by:
openin interfaceWarpDownlink- Specified by:
openin classWarpDownlinkView
-
close
public void close()- Specified by:
closein interfaceLink- Overrides:
closein classDownlinkView
-
isEmpty
public boolean isEmpty() -
size
public int size() -
containsKey
Description copied from interface:MapOutletReturnstrueif the current state of thisMapOutletcontains the givenkey; otherwise returnsfalse.- Specified by:
containsKeyin interfaceIterableMap<K,V> - Specified by:
containsKeyin interfaceMap<K,V> - Specified by:
containsKeyin interfaceMapOutlet<K,V, MapDownlink<K, V>> - Specified by:
containsKeyin interfaceOrderedMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceIterableMap<K,V> - Specified by:
containsValuein interfaceMap<K,V> - Specified by:
containsValuein interfaceOrderedMap<K,V>
-
indexOf
- Specified by:
indexOfin interfaceOrderedMap<K,V>
-
get
Description copied from interface:MapOutletReturns the value assocaited with the givenkeyin the current state of thisMapOutlet, if defined; otherwise returnsnull. -
getEntry
- Specified by:
getEntryin interfaceOrderedMap<K,V>
-
getIndex
- Specified by:
getIndexin interfaceOrderedMap<K,V>
-
firstEntry
- Specified by:
firstEntryin interfaceOrderedMap<K,V>
-
firstKey
-
firstValue
- Specified by:
firstValuein interfaceOrderedMap<K,V>
-
lastEntry
- Specified by:
lastEntryin interfaceOrderedMap<K,V>
-
lastKey
-
lastValue
- Specified by:
lastValuein interfaceOrderedMap<K,V>
-
nextEntry
- Specified by:
nextEntryin interfaceOrderedMap<K,V>
-
nextKey
- Specified by:
nextKeyin interfaceOrderedMap<K,V>
-
nextValue
- Specified by:
nextValuein interfaceOrderedMap<K,V>
-
previousEntry
- Specified by:
previousEntryin interfaceOrderedMap<K,V>
-
previousKey
- Specified by:
previousKeyin interfaceOrderedMap<K,V>
-
previousValue
- Specified by:
previousValuein interfaceOrderedMap<K,V>
-
put
-
putAll
-
remove
-
drop
public void drop(int lower) - Specified by:
dropin interfaceObservableSortedMap<K,V>
-
take
public void take(int upper) - Specified by:
takein interfaceObservableSortedMap<K,V>
-
clear
public void clear() -
headMap
-
tailMap
-
subMap
-
entrySet
-
keySet
-
values
-
iterator
-
keyIterator
Description copied from interface:MapOutletReturns anIteratorover the keys in the current state of thisMapOutlet.- Specified by:
keyIteratorin interfaceIterableMap<K,V> - Specified by:
keyIteratorin interfaceMapDownlink<K,V> - Specified by:
keyIteratorin interfaceMapOutlet<K,V, MapDownlink<K, V>> - Specified by:
keyIteratorin interfaceOrderedMap<K,V>
-
valueIterator
- Specified by:
valueIteratorin interfaceIterableMap<K,V> - Specified by:
valueIteratorin interfaceOrderedMap<K,V>
-
comparator
- Specified by:
comparatorin interfaceOrderedMap<K,V> - Specified by:
comparatorin interfaceSortedMap<K,V>
-
get
Description copied from interface:OutletReturns the current state of thisOutlet. -
input
Description copied from interface:InletReturns theOutletfrom which thisInletacquires its state; returnsnullif thisInletis disconnected. -
bindInput
Description copied from interface:InletConnects thisInletto anOutletfrom which it will acquire its state. If thisInletis already connected, it will first disconnect from its existing input. Then, after updating itsinputproperty, theInletwill invokeOutlet.bindOutput(Inlet)on its newinput. -
bindInput
-
unbindInput
public void unbindInput()Description copied from interface:InletDisconnects thisInletfrom its inputOutlet, if connected. After setting itsinputproperty tonull, theInletwill invokeOutlet.unbindOutput(Inlet)on its old input, if defined.- Specified by:
unbindInputin interfaceInlet<K>
-
disconnectInputs
public void disconnectInputs()Description copied from interface:InletDisconnects allInlets dominated by thisInletin the dataflow dependency graph. Used to recursively clean up chains of combinators terminating at thisInlet.- Specified by:
disconnectInputsin interfaceInlet<K>- Specified by:
disconnectInputsin interfaceOutlet<K>
-
outlet
Description copied from interface:MapOutletReturns anOutletthat updates when the specifiedkeyupdates. -
outputIterator
Description copied from interface:OutletReturns anIteratorover the set ofInlets that depend on the state of thisOutlet.- Specified by:
outputIteratorin interfaceOutlet<K>
-
bindOutput
Description copied from interface:OutletAdds anoutputto the set ofInlets that depend on the state of thisOutlet. Theoutputwill be decohered when the state of thisOutletis decohered, and recohered when thisOutletis recohered.- Specified by:
bindOutputin interfaceOutlet<K>
-
unbindOutput
Description copied from interface:OutletRemoves anoutputfrom the set ofInlets that depend on the state of thisOutlet.- Specified by:
unbindOutputin interfaceOutlet<K>
-
unbindOutputs
public void unbindOutputs()Description copied from interface:OutletDisconnects all outputs from thisOutletby invokingInlet.unbindInput()on eachIneltthat depends on the state of thisOutlet.- Specified by:
unbindOutputsin interfaceOutlet<K>
-
disconnectOutputs
public void disconnectOutputs()Description copied from interface:InletDisconnects allOutlets dominated by thisInletin the dataflow graph. Used to recursively clean up chains of combinators passing through thisInlet.- Specified by:
disconnectOutputsin interfaceInlet<K>- Specified by:
disconnectOutputsin interfaceOutlet<K>
-
decohereOutputKey
Description copied from interface:MapInletMarks thisMapInletas needing aneffectapplied to a givenkey. Decohering an individual key decoheres the entire state of theInlet. But only the decoherent keys need to be updated in order to recohere the overall state of theInlet. -
decohereInputKey
Description copied from interface:MapOutletMarks thisMapOutletas needing aneffectapplied to a givenkey. Decohering an individual key decoheres the entire state of theOutlet. But only the decoherent keys need to be updated in order to recohere the overall state of theOutlet.- Specified by:
decohereInputKeyin interfaceMapOutlet<K,V, MapDownlink<K, V>>
-
decohereKey
-
decohereOutput
public void decohereOutput()Description copied from interface:InletMarks thisInlet—and theStreamletto which thisInletis attached—as having decoherent state. Decohering anInletwill recursively decohere all streamlets that transitively depend on the state of thisInlet. Decohering anInletdoes not cause its state to be recomputed. A subsequentInlet.recohereOutput(int)call will eventually make the state of theInletcoherent again.- Specified by:
decohereOutputin interfaceInlet<K>
-
decohereInput
public void decohereInput()Description copied from interface:OutletMarks thisOutlet—and alloutputsthat depend on the state of thisOutlet—as having decoherent state.- Specified by:
decohereInputin interfaceOutlet<K>
-
decohere
public void decohere() -
recohereOutputKey
Description copied from interface:MapInletUpdates the state of an individualkeyin thisMapInletto make it consistent with the targetversion. TheMapInletonly needs to update if the currentversiondiffers from the targetversion. To update the state of a key, theMapInletfirst invokesMapOutlet.recohereInputKey(Object, int)on itsinput, if its input is aMapOutlet, or it invokesOutlet.recohereInput(int), if its input is not aMapOutlet. Then, if all decoherent keys have been recohered, theMapInletinvokesStreamlet.recohere(int)on its attached streamlet. -
recohereInputKey
Description copied from interface:MapOutletUpdates the state of an individualkeyin thisMapOutletto make it consistent with the targetversion. TheMapOutletonly needs to update if its currentversiondiffers from the targetversion. To update the state of a key, theMapOutletfirst invokesStreamlet.recohere(int)on its attached streamlets. Then, for each dependent output, it invokesMapInlet.recohereOutputKey(Object, int), if the dependent output is aMapInlet, or it invokesInlet.recohereOutput(int), if the dependent output is not aMapInlet.- Specified by:
recohereInputKeyin interfaceMapOutlet<K,V, MapDownlink<K, V>>
-
recohereKey
-
recohereOutput
public void recohereOutput(int version) Description copied from interface:InletUpdates the state of thisInletto make it consistent with thetargetversion. TheInletonly needs to update if its currentversiondiffers from the targetversion. To update its state, theInletfirst invokesOutlet.recohereInput(int)on itsinput, to ensure that its input is coherent. It then invokesStreamlet.recohere(int)on theStreamletto which it's attached, causing theStreamletto make its own state coherent again.- Specified by:
recohereOutputin interfaceInlet<K>
-
recohereInput
public void recohereInput(int version) Description copied from interface:OutletUpdates the state of thisOutletto make it consistent with the targetversion. TheOutletonly needs to update if its currentversiondiffers from the targetversion. To update its state, theOutletfirst invokesStreamlet.recohere(int)on theStreamletto which it's attached. It then invokesInlet.recohereOutput(int)on each of its dependentoutputs.- Specified by:
recohereInputin interfaceOutlet<K>
-
recohere
public void recohere(int version) -
willDecohereKey
-
onDecohereKey
-
didDecohereKey
-
willDecohere
protected void willDecohere() -
onDecohere
protected void onDecohere() -
didDecohere
protected void didDecohere() -
willRecohereKey
-
onRecohereKey
-
didRecohereKey
-
willRecohere
protected void willRecohere(int version) -
onRecohere
protected void onRecohere(int version) -
didRecohere
protected void didRecohere(int version)
-