- java.lang.Object
-
- swim.runtime.downlink.DownlinkView
-
- swim.runtime.downlink.MapDownlinkView<K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>,Map<K,V>,SortedMap<K,V>,swim.api.downlink.Downlink,swim.api.downlink.MapDownlink<K,V>,swim.api.Link,swim.observable.Observable<Object>,swim.observable.ObservableIterableMap<K,V>,swim.observable.ObservableMap<K,V>,swim.observable.ObservableOrderedMap<K,V>,swim.observable.ObservableSortedMap<K,V>,swim.streamlet.Inlet<Map<K,V>>,swim.streamlet.MapInlet<K,V,Map<K,V>>,swim.streamlet.MapOutlet<K,V,swim.api.downlink.MapDownlink<K,V>>,swim.streamlet.Outlet<swim.api.downlink.MapDownlink<K,V>>,swim.util.IterableMap<K,V>,swim.util.Log,swim.util.OrderedMap<K,V>
- Direct Known Subclasses:
JoinMapLaneDownlink
public class MapDownlinkView<K,V> extends DownlinkView implements swim.api.downlink.MapDownlink<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.collections.HashTrieMap<K,swim.streamlet.KeyEffect>effectsprotected swim.streamlet.MapOutlet<K,V,? extends Map<K,V>>inputprotected swim.structure.Form<K>keyFormprotected MapDownlinkModelmodelprotected swim.collections.HashTrieMap<K,swim.streamlet.KeyOutlet<K,V>>outletsprotected swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>>[]outputsprotected static intSTATEFULprotected swim.structure.Form<V>valueFormprotected intversion-
Fields inherited from class swim.runtime.downlink.DownlinkView
body, cellContext, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, observers, prio, rate, stage
-
-
Constructor Summary
Constructors Constructor Description MapDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, int flags, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm, Object observers)MapDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindInput(swim.streamlet.MapOutlet<K,V,? extends Map<K,V>> input)voidbindInput(swim.streamlet.Outlet<? extends Map<K,V>> input)voidbindOutput(swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>> output)MapDownlinkView<K,V>body(swim.structure.Value body)voidclear()Comparator<? super K>comparator()booleancontainsKey(Object keyObject)booleancontainsValue(Object valueObject)MapDownlinkModelcreateDownlinkModel()MapDownlinkView<K,V>didClear(swim.observable.function.DidClear didClear)MapDownlinkView<K,V>didClose(swim.api.function.DidClose didClose)MapDownlinkView<K,V>didConnect(swim.api.function.DidConnect didConnect)MapDownlinkView<K,V>didDisconnect(swim.api.function.DidDisconnect didDisconnect)swim.api.downlink.MapDownlink<K,V>didDrop(swim.observable.function.DidDrop didDrop)MapDownlinkView<K,V>didFail(swim.api.function.DidFail didFail)protected voiddidInvalidate()protected voiddidInvalidateKey(K key, swim.streamlet.KeyEffect effect)MapDownlinkView<K,V>didLink(swim.api.downlink.function.DidLink didLink)MapDownlinkView<K,V>didReceive(swim.api.downlink.function.DidReceive didReceive)protected voiddidReconcile(int version)protected voiddidReconcileKey(K key, swim.streamlet.KeyEffect effect, int version)MapDownlinkView<K,V>didRemove(swim.observable.function.DidRemoveKey<K,V> didRemove)MapDownlinkView<K,V>didSync(swim.api.downlink.function.DidSync didSync)swim.api.downlink.MapDownlink<K,V>didTake(swim.observable.function.DidTake didTake)MapDownlinkView<K,V>didUnlink(swim.api.downlink.function.DidUnlink didUnlink)protected voiddidUpdate(int version)MapDownlinkView<K,V>didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)voiddisconnectInputs()voiddisconnectOutputs()protected booleandispatchDidClear(boolean preemptive)protected booleandispatchDidDrop(int lower, boolean preemptive)protected booleandispatchDidRemove(K key, V oldValue, boolean preemptive)protected booleandispatchDidTake(int upper, boolean preemptive)protected booleandispatchDidUpdate(K key, V newValue, V oldValue, boolean preemptive)protected booleandispatchWillClear(boolean preemptive)protected booleandispatchWillDrop(int lower, boolean preemptive)protected booleandispatchWillRemove(K key, boolean preemptive)protected booleandispatchWillTake(int upper, boolean preemptive)protected Map.Entry<Boolean,V>dispatchWillUpdate(K key, V newValue, boolean preemptive)voiddownlinkDidClear()voiddownlinkDidDrop(int lower)voiddownlinkDidRemove(K key, V oldValue)voiddownlinkDidRemoveValue(swim.structure.Value key, swim.structure.Value oldValue)voiddownlinkDidTake(int upper)voiddownlinkDidUpdate(K key, V newValue, V oldValue)voiddownlinkDidUpdateValue(swim.structure.Value key, swim.structure.Value newValue, swim.structure.Value oldValue)MapDownlinkModeldownlinkModel()voiddownlinkWillClear()voiddownlinkWillDrop(int lower)voiddownlinkWillRemove(K key)voiddownlinkWillRemoveValue(swim.structure.Value key)voiddownlinkWillTake(int upper)VdownlinkWillUpdate(K key, V newValue)swim.structure.ValuedownlinkWillUpdateValue(swim.structure.Value key, swim.structure.Value newValue)voiddrop(int lower)Set<Map.Entry<K,V>>entrySet()Map.Entry<K,V>firstEntry()KfirstKey()VfirstValue()swim.api.downlink.MapDownlink<K,V>get()Vget(Object keyObject)Map.Entry<K,V>getEntry(Object keyObject)Map.Entry<K,V>getIndex(int index)swim.util.OrderedMap<K,V>headMap(K toKeyObject)MapDownlinkView<K,V>hostUri(String hostUri)MapDownlinkView<K,V>hostUri(swim.uri.Uri hostUri)intindexOf(Object keyObject)swim.streamlet.MapOutlet<K,V,? extends Map<K,V>>input()voidinvalidate()voidinvalidateInput()voidinvalidateInputKey(K key, swim.streamlet.KeyEffect effect)voidinvalidateKey(K key, swim.streamlet.KeyEffect effect)voidinvalidateOutput()voidinvalidateOutputKey(K key, swim.streamlet.KeyEffect effect)booleanisEmpty()booleanisStateful()MapDownlinkView<K,V>isStateful(boolean isStateful)swim.util.OrderedMapCursor<K,V>iterator()MapDownlinkView<K,V>keepLinked(boolean keepLinked)MapDownlinkView<K,V>keepSynced(boolean keepSynced)<K2> MapDownlinkView<K2,V>keyClass(Class<K2> keyClass)swim.structure.Form<K>keyForm()<K2> MapDownlinkView<K2,V>keyForm(swim.structure.Form<K2> keyForm)swim.util.Cursor<K>keyIterator()Set<K>keySet()MapDownlinkView<K,V>laneUri(String laneUri)MapDownlinkView<K,V>laneUri(swim.uri.Uri laneUri)Map.Entry<K,V>lastEntry()KlastKey()VlastValue()Map.Entry<K,V>nextEntry(Object keyObject)KnextKey(Object keyObject)VnextValue(Object keyObject)MapDownlinkView<K,V>nodeUri(String nodeUri)MapDownlinkView<K,V>nodeUri(swim.uri.Uri nodeUri)MapDownlinkView<K,V>observe(Object observer)protected voidonInvalidate()protected voidonInvalidateKey(K key, swim.streamlet.KeyEffect effect)protected voidonReconcile(int version)protected voidonReconcileKey(K key, swim.streamlet.KeyEffect effect, int version)MapDownlinkView<K,V>open()swim.streamlet.Outlet<V>outlet(K key)Iterator<swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>>>outputIterator()Map.Entry<K,V>previousEntry(Object keyObject)KpreviousKey(Object keyObject)VpreviousValue(Object keyObject)MapDownlinkView<K,V>prio(float prio)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)MapDownlinkView<K,V>rate(float rate)voidreconcile(int version)voidreconcileInput(int version)voidreconcileInputKey(K key, int version)voidreconcileKey(K key, int version)voidreconcileOutput(int version)voidreconcileOutputKey(K key, int version)Vremove(Object key)intsize()swim.util.OrderedMap<K,V>subMap(K fromKeyObject, K toKeyObject)swim.util.OrderedMap<K,V>tailMap(K fromKeyObject)voidtake(int upper)protected ObjecttypesafeObservers(Object observers)voidunbindInput()voidunbindOutput(swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>> output)voidunbindOutputs()MapDownlinkView<K,V>unobserve(Object observer)<V2> MapDownlinkView<K,V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> MapDownlinkView<K,V2>valueForm(swim.structure.Form<V2> valueForm)swim.util.Cursor<V>valueIterator()Collection<V>values()MapDownlinkView<K,V>willClear(swim.observable.function.WillClear willClear)MapDownlinkView<K,V>willCommand(swim.api.downlink.function.WillCommand willCommand)swim.api.downlink.MapDownlink<K,V>willDrop(swim.observable.function.WillDrop willDrop)protected voidwillInvalidate()protected voidwillInvalidateKey(K key, swim.streamlet.KeyEffect effect)MapDownlinkView<K,V>willLink(swim.api.downlink.function.WillLink willLink)MapDownlinkView<K,V>willReceive(swim.api.downlink.function.WillReceive willReceive)protected voidwillReconcile(int version)protected voidwillReconcileKey(K key, swim.streamlet.KeyEffect effect, int version)MapDownlinkView<K,V>willRemove(swim.observable.function.WillRemoveKey<K> willRemove)MapDownlinkView<K,V>willSync(swim.api.downlink.function.WillSync willSync)swim.api.downlink.MapDownlink<K,V>willTake(swim.observable.function.WillTake willTake)MapDownlinkView<K,V>willUnlink(swim.api.downlink.function.WillUnlink willUnlink)protected voidwillUpdate(int version)MapDownlinkView<K,V>willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)-
Methods inherited from class swim.runtime.downlink.DownlinkView
body, cellContext, cipherSuite, close, command, command, debug, dispatchDidClose, dispatchDidConnect, dispatchDidDisconnect, dispatchDidFail, dispatchDidLink, dispatchDidReceive, dispatchDidSync, dispatchDidUnlink, dispatchWillCommand, dispatchWillLink, dispatchWillReceive, dispatchWillSync, dispatchWillUnlink, downlinkDidClose, downlinkDidConnect, downlinkDidDisconnect, downlinkDidFail, downlinkDidLink, downlinkDidReceive, downlinkDidSync, downlinkDidUnlink, downlinkWillCommand, downlinkWillLink, downlinkWillReceive, downlinkWillSync, downlinkWillUnlink, error, hostUri, info, isConnected, isRemote, isSecure, keepLinked, keepSynced, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, meshUri, nodeUri, prio, rate, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol, stage, trace, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.downlink.Downlink
body, cipherSuite, close, command, command, debug, error, hostUri, info, isConnected, isRemote, isSecure, keepLinked, keepSynced, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, nodeUri, prio, rate, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol, trace, warn
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
keyForm
protected final swim.structure.Form<K> keyForm
-
valueForm
protected final swim.structure.Form<V> valueForm
-
model
protected MapDownlinkModel model
-
effects
protected swim.collections.HashTrieMap<K,swim.streamlet.KeyEffect> effects
-
version
protected int version
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MapDownlinkView
public MapDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, int flags, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm, Object observers)
-
MapDownlinkView
public MapDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
downlinkModel
public MapDownlinkModel downlinkModel()
- Specified by:
downlinkModelin classDownlinkView
-
hostUri
public MapDownlinkView<K,V> hostUri(swim.uri.Uri hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.Downlink- Specified by:
hostUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
hostUriin classDownlinkView
-
hostUri
public MapDownlinkView<K,V> hostUri(String hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.Downlink- Specified by:
hostUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
hostUriin classDownlinkView
-
nodeUri
public MapDownlinkView<K,V> nodeUri(swim.uri.Uri nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.Downlink- Specified by:
nodeUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
nodeUriin classDownlinkView
-
nodeUri
public MapDownlinkView<K,V> nodeUri(String nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.Downlink- Specified by:
nodeUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
nodeUriin classDownlinkView
-
laneUri
public MapDownlinkView<K,V> laneUri(swim.uri.Uri laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.Downlink- Specified by:
laneUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
laneUriin classDownlinkView
-
laneUri
public MapDownlinkView<K,V> laneUri(String laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.Downlink- Specified by:
laneUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
laneUriin classDownlinkView
-
prio
public MapDownlinkView<K,V> prio(float prio)
- Specified by:
prioin interfaceswim.api.downlink.Downlink- Specified by:
prioin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
prioin classDownlinkView
-
rate
public MapDownlinkView<K,V> rate(float rate)
- Specified by:
ratein interfaceswim.api.downlink.Downlink- Specified by:
ratein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
ratein classDownlinkView
-
body
public MapDownlinkView<K,V> body(swim.structure.Value body)
- Specified by:
bodyin interfaceswim.api.downlink.Downlink- Specified by:
bodyin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
bodyin classDownlinkView
-
keepLinked
public MapDownlinkView<K,V> keepLinked(boolean keepLinked)
- Specified by:
keepLinkedin interfaceswim.api.downlink.Downlink- Specified by:
keepLinkedin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
keepLinkedin classDownlinkView
-
keepSynced
public MapDownlinkView<K,V> keepSynced(boolean keepSynced)
- Specified by:
keepSyncedin interfaceswim.api.downlink.Downlink- Specified by:
keepSyncedin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
keepSyncedin classDownlinkView
-
isStateful
public final boolean isStateful()
-
isStateful
public MapDownlinkView<K,V> isStateful(boolean isStateful)
-
keyForm
public final swim.structure.Form<K> keyForm()
-
keyForm
public <K2> MapDownlinkView<K2,V> keyForm(swim.structure.Form<K2> keyForm)
-
keyClass
public <K2> MapDownlinkView<K2,V> keyClass(Class<K2> keyClass)
-
valueForm
public final swim.structure.Form<V> valueForm()
-
valueForm
public <V2> MapDownlinkView<K,V2> valueForm(swim.structure.Form<V2> valueForm)
-
valueClass
public <V2> MapDownlinkView<K,V2> valueClass(Class<V2> valueClass)
-
observe
public MapDownlinkView<K,V> observe(Object observer)
- Specified by:
observein interfaceswim.api.downlink.Downlink- Specified by:
observein interfaceswim.api.Link- Specified by:
observein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
observein interfaceswim.observable.Observable<K>- Specified by:
observein interfaceswim.observable.ObservableMap<K,V>- Specified by:
observein interfaceswim.observable.ObservableSortedMap<K,V>- Overrides:
observein classDownlinkView
-
unobserve
public MapDownlinkView<K,V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.downlink.Downlink- Specified by:
unobservein interfaceswim.api.Link- Specified by:
unobservein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
unobservein interfaceswim.observable.Observable<K>- Specified by:
unobservein interfaceswim.observable.ObservableMap<K,V>- Specified by:
unobservein interfaceswim.observable.ObservableSortedMap<K,V>- Overrides:
unobservein classDownlinkView
-
willUpdate
public MapDownlinkView<K,V> willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)
-
didUpdate
public MapDownlinkView<K,V> didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)
-
willRemove
public MapDownlinkView<K,V> willRemove(swim.observable.function.WillRemoveKey<K> willRemove)
-
didRemove
public MapDownlinkView<K,V> didRemove(swim.observable.function.DidRemoveKey<K,V> didRemove)
-
willDrop
public swim.api.downlink.MapDownlink<K,V> willDrop(swim.observable.function.WillDrop willDrop)
-
didDrop
public swim.api.downlink.MapDownlink<K,V> didDrop(swim.observable.function.DidDrop didDrop)
-
willTake
public swim.api.downlink.MapDownlink<K,V> willTake(swim.observable.function.WillTake willTake)
-
didTake
public swim.api.downlink.MapDownlink<K,V> didTake(swim.observable.function.DidTake didTake)
-
willClear
public MapDownlinkView<K,V> willClear(swim.observable.function.WillClear willClear)
-
didClear
public MapDownlinkView<K,V> didClear(swim.observable.function.DidClear didClear)
-
willReceive
public MapDownlinkView<K,V> willReceive(swim.api.downlink.function.WillReceive willReceive)
- Specified by:
willReceivein interfaceswim.api.downlink.Downlink- Specified by:
willReceivein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willReceivein classDownlinkView
-
didReceive
public MapDownlinkView<K,V> didReceive(swim.api.downlink.function.DidReceive didReceive)
- Specified by:
didReceivein interfaceswim.api.downlink.Downlink- Specified by:
didReceivein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didReceivein classDownlinkView
-
willCommand
public MapDownlinkView<K,V> willCommand(swim.api.downlink.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.downlink.Downlink- Specified by:
willCommandin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willCommandin classDownlinkView
-
willLink
public MapDownlinkView<K,V> willLink(swim.api.downlink.function.WillLink willLink)
- Specified by:
willLinkin interfaceswim.api.downlink.Downlink- Specified by:
willLinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willLinkin classDownlinkView
-
didLink
public MapDownlinkView<K,V> didLink(swim.api.downlink.function.DidLink didLink)
- Specified by:
didLinkin interfaceswim.api.downlink.Downlink- Specified by:
didLinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didLinkin classDownlinkView
-
willSync
public MapDownlinkView<K,V> willSync(swim.api.downlink.function.WillSync willSync)
- Specified by:
willSyncin interfaceswim.api.downlink.Downlink- Specified by:
willSyncin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willSyncin classDownlinkView
-
didSync
public MapDownlinkView<K,V> didSync(swim.api.downlink.function.DidSync didSync)
- Specified by:
didSyncin interfaceswim.api.downlink.Downlink- Specified by:
didSyncin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didSyncin classDownlinkView
-
willUnlink
public MapDownlinkView<K,V> willUnlink(swim.api.downlink.function.WillUnlink willUnlink)
- Specified by:
willUnlinkin interfaceswim.api.downlink.Downlink- Specified by:
willUnlinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willUnlinkin classDownlinkView
-
didUnlink
public MapDownlinkView<K,V> didUnlink(swim.api.downlink.function.DidUnlink didUnlink)
- Specified by:
didUnlinkin interfaceswim.api.downlink.Downlink- Specified by:
didUnlinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didUnlinkin classDownlinkView
-
didConnect
public MapDownlinkView<K,V> didConnect(swim.api.function.DidConnect didConnect)
- Specified by:
didConnectin interfaceswim.api.downlink.Downlink- Specified by:
didConnectin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didConnectin classDownlinkView
-
didDisconnect
public MapDownlinkView<K,V> didDisconnect(swim.api.function.DidDisconnect didDisconnect)
- Specified by:
didDisconnectin interfaceswim.api.downlink.Downlink- Specified by:
didDisconnectin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didDisconnectin classDownlinkView
-
didClose
public MapDownlinkView<K,V> didClose(swim.api.function.DidClose didClose)
- Specified by:
didClosein interfaceswim.api.downlink.Downlink- Specified by:
didClosein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didClosein classDownlinkView
-
didFail
public MapDownlinkView<K,V> didFail(swim.api.function.DidFail didFail)
- Specified by:
didFailin interfaceswim.api.downlink.Downlink- Specified by:
didFailin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didFailin classDownlinkView
-
downlinkWillUpdateValue
public swim.structure.Value downlinkWillUpdateValue(swim.structure.Value key, swim.structure.Value newValue)
-
downlinkDidUpdateValue
public void downlinkDidUpdateValue(swim.structure.Value key, swim.structure.Value newValue, swim.structure.Value oldValue)
-
downlinkWillRemoveValue
public void downlinkWillRemoveValue(swim.structure.Value key)
-
downlinkDidRemoveValue
public void downlinkDidRemoveValue(swim.structure.Value key, swim.structure.Value oldValue)
-
downlinkWillRemove
public void downlinkWillRemove(K key)
-
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
protected Map.Entry<Boolean,V> dispatchWillUpdate(K key, V newValue, boolean preemptive)
-
dispatchDidUpdate
protected boolean dispatchDidUpdate(K key, V newValue, V oldValue, boolean preemptive)
-
dispatchWillRemove
protected boolean dispatchWillRemove(K key, boolean preemptive)
-
dispatchWillDrop
protected boolean dispatchWillDrop(int lower, boolean preemptive)
-
dispatchDidDrop
protected boolean dispatchDidDrop(int lower, boolean preemptive)
-
dispatchWillTake
protected boolean dispatchWillTake(int upper, boolean preemptive)
-
dispatchDidTake
protected boolean dispatchDidTake(int upper, boolean preemptive)
-
dispatchWillClear
protected boolean dispatchWillClear(boolean preemptive)
-
dispatchDidClear
protected boolean dispatchDidClear(boolean preemptive)
-
createDownlinkModel
public MapDownlinkModel createDownlinkModel()
- Specified by:
createDownlinkModelin classDownlinkView
-
open
public MapDownlinkView<K,V> open()
- Specified by:
openin interfaceswim.api.downlink.Downlink- Specified by:
openin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
openin classDownlinkView
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
containsKey
public boolean containsKey(Object keyObject)
-
containsValue
public boolean containsValue(Object valueObject)
-
indexOf
public int indexOf(Object keyObject)
-
firstKey
public K firstKey()
-
lastKey
public K lastKey()
-
drop
public void drop(int lower)
-
take
public void take(int upper)
-
clear
public void clear()
-
values
public Collection<V> values()
-
keyIterator
public swim.util.Cursor<K> keyIterator()
- Specified by:
keyIteratorin interfaceswim.util.IterableMap<K,V>- Specified by:
keyIteratorin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
keyIteratorin interfaceswim.streamlet.MapOutlet<K,V,swim.api.downlink.MapDownlink<K,V>>- Specified by:
keyIteratorin interfaceswim.util.OrderedMap<K,V>
-
valueIterator
public swim.util.Cursor<V> valueIterator()
-
comparator
public Comparator<? super K> comparator()
-
get
public swim.api.downlink.MapDownlink<K,V> get()
- Specified by:
getin interfaceswim.streamlet.Outlet<K>
-
input
public swim.streamlet.MapOutlet<K,V,? extends Map<K,V>> input()
- Specified by:
inputin interfaceswim.streamlet.Inlet<K>
-
bindInput
public void bindInput(swim.streamlet.Outlet<? extends Map<K,V>> input)
- Specified by:
bindInputin interfaceswim.streamlet.Inlet<K>
-
unbindInput
public void unbindInput()
- Specified by:
unbindInputin interfaceswim.streamlet.Inlet<K>
-
disconnectInputs
public void disconnectInputs()
-
outputIterator
public Iterator<swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>>> outputIterator()
- Specified by:
outputIteratorin interfaceswim.streamlet.Outlet<K>
-
bindOutput
public void bindOutput(swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>> output)
- Specified by:
bindOutputin interfaceswim.streamlet.Outlet<K>
-
unbindOutput
public void unbindOutput(swim.streamlet.Inlet<? super swim.api.downlink.MapDownlink<K,V>> output)
- Specified by:
unbindOutputin interfaceswim.streamlet.Outlet<K>
-
unbindOutputs
public void unbindOutputs()
- Specified by:
unbindOutputsin interfaceswim.streamlet.Outlet<K>
-
disconnectOutputs
public void disconnectOutputs()
-
invalidateOutputKey
public void invalidateOutputKey(K key, swim.streamlet.KeyEffect effect)
-
invalidateInputKey
public void invalidateInputKey(K key, swim.streamlet.KeyEffect effect)
-
invalidateKey
public void invalidateKey(K key, swim.streamlet.KeyEffect effect)
-
invalidateOutput
public void invalidateOutput()
- Specified by:
invalidateOutputin interfaceswim.streamlet.Inlet<K>
-
invalidateInput
public void invalidateInput()
- Specified by:
invalidateInputin interfaceswim.streamlet.Outlet<K>
-
invalidate
public void invalidate()
-
reconcileOutputKey
public void reconcileOutputKey(K key, int version)
-
reconcileInputKey
public void reconcileInputKey(K key, int version)
-
reconcileKey
public void reconcileKey(K key, int version)
-
reconcileOutput
public void reconcileOutput(int version)
- Specified by:
reconcileOutputin interfaceswim.streamlet.Inlet<K>
-
reconcileInput
public void reconcileInput(int version)
- Specified by:
reconcileInputin interfaceswim.streamlet.Outlet<K>
-
reconcile
public void reconcile(int version)
-
willInvalidateKey
protected void willInvalidateKey(K key, swim.streamlet.KeyEffect effect)
-
onInvalidateKey
protected void onInvalidateKey(K key, swim.streamlet.KeyEffect effect)
-
didInvalidateKey
protected void didInvalidateKey(K key, swim.streamlet.KeyEffect effect)
-
willInvalidate
protected void willInvalidate()
-
onInvalidate
protected void onInvalidate()
-
didInvalidate
protected void didInvalidate()
-
willUpdate
protected void willUpdate(int version)
-
didUpdate
protected void didUpdate(int version)
-
willReconcileKey
protected void willReconcileKey(K key, swim.streamlet.KeyEffect effect, int version)
-
onReconcileKey
protected void onReconcileKey(K key, swim.streamlet.KeyEffect effect, int version)
-
didReconcileKey
protected void didReconcileKey(K key, swim.streamlet.KeyEffect effect, int version)
-
willReconcile
protected void willReconcile(int version)
-
onReconcile
protected void onReconcile(int version)
-
didReconcile
protected void didReconcile(int version)
-
-