- java.lang.Object
-
- swim.runtime.DownlinkView
-
- swim.runtime.warp.WarpDownlinkView
-
- swim.runtime.downlink.MapDownlinkView<K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>,Map<K,V>,SortedMap<K,V>,swim.api.Downlink,swim.api.downlink.MapDownlink<K,V>,swim.api.Link,swim.api.warp.WarpDownlink,swim.api.warp.WarpLink,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 WarpDownlinkView 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.warp.WarpDownlinkView
body, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, prio, rate
-
Fields inherited from class swim.runtime.DownlinkView
cellContext, observers, 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()voidclose()Comparator<? super K>comparator()booleancontainsKey(Object keyObject)booleancontainsValue(Object valueObject)MapDownlinkModelcreateDownlinkModel()voiddecohere()voiddecohereInput()voiddecohereInputKey(K key, swim.streamlet.KeyEffect effect)voiddecohereKey(K key, swim.streamlet.KeyEffect effect)voiddecohereOutput()voiddecohereOutputKey(K key, swim.streamlet.KeyEffect effect)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)protected voiddidDecohere()protected voiddidDecohereKey(K key, swim.streamlet.KeyEffect effect)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)MapDownlinkView<K,V>didLink(swim.api.warp.function.DidLink didLink)MapDownlinkView<K,V>didReceive(swim.api.warp.function.DidReceive didReceive)protected voiddidRecohere(int version)protected voiddidRecohereKey(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.warp.function.DidSync didSync)swim.api.downlink.MapDownlink<K,V>didTake(swim.observable.function.DidTake didTake)MapDownlinkView<K,V>didUnlink(swim.api.warp.function.DidUnlink didUnlink)MapDownlinkView<K,V>didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)voiddisconnectInputs()voiddisconnectOutputs()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)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()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 voidonDecohere()protected voidonDecohereKey(K key, swim.streamlet.KeyEffect effect)protected voidonRecohere(int version)protected voidonRecohereKey(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)voidrecohere(int version)voidrecohereInput(int version)voidrecohereInputKey(K key, int version)voidrecohereKey(K key, int version)voidrecohereOutput(int version)voidrecohereOutputKey(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.warp.function.WillCommand willCommand)protected voidwillDecohere()protected voidwillDecohereKey(K key, swim.streamlet.KeyEffect effect)swim.api.downlink.MapDownlink<K,V>willDrop(swim.observable.function.WillDrop willDrop)MapDownlinkView<K,V>willLink(swim.api.warp.function.WillLink willLink)MapDownlinkView<K,V>willReceive(swim.api.warp.function.WillReceive willReceive)protected voidwillRecohere(int version)protected voidwillRecohereKey(K key, swim.streamlet.KeyEffect effect, int version)MapDownlinkView<K,V>willRemove(swim.observable.function.WillRemoveKey<K> willRemove)MapDownlinkView<K,V>willSync(swim.api.warp.function.WillSync willSync)swim.api.downlink.MapDownlink<K,V>willTake(swim.observable.function.WillTake willTake)MapDownlinkView<K,V>willUnlink(swim.api.warp.function.WillUnlink willUnlink)MapDownlinkView<K,V>willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)-
Methods inherited from class swim.runtime.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, rate
-
Methods inherited from class swim.runtime.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, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface swim.api.Link
cipherSuite, hostUri, isConnected, isRemote, isSecure, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, nodeUri, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
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
-
-
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 classWarpDownlinkView
-
hostUri
public MapDownlinkView<K,V> hostUri(swim.uri.Uri hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
hostUriin interfaceswim.api.warp.WarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
hostUri
public MapDownlinkView<K,V> hostUri(String hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
hostUriin interfaceswim.api.warp.WarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
nodeUri
public MapDownlinkView<K,V> nodeUri(swim.uri.Uri nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
nodeUriin interfaceswim.api.warp.WarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
nodeUri
public MapDownlinkView<K,V> nodeUri(String nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
nodeUriin interfaceswim.api.warp.WarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
laneUri
public MapDownlinkView<K,V> laneUri(swim.uri.Uri laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
laneUriin interfaceswim.api.warp.WarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
laneUri
public MapDownlinkView<K,V> laneUri(String laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
laneUriin interfaceswim.api.warp.WarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
prio
public MapDownlinkView<K,V> prio(float prio)
- Specified by:
prioin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
prioin interfaceswim.api.warp.WarpDownlink- Specified by:
prioin classWarpDownlinkView
-
rate
public MapDownlinkView<K,V> rate(float rate)
- Specified by:
ratein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
ratein interfaceswim.api.warp.WarpDownlink- Specified by:
ratein classWarpDownlinkView
-
body
public MapDownlinkView<K,V> body(swim.structure.Value body)
- Specified by:
bodyin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
bodyin interfaceswim.api.warp.WarpDownlink- Specified by:
bodyin classWarpDownlinkView
-
keepLinked
public MapDownlinkView<K,V> keepLinked(boolean keepLinked)
- Specified by:
keepLinkedin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
keepLinkedin interfaceswim.api.warp.WarpDownlink- Specified by:
keepLinkedin classWarpDownlinkView
-
keepSynced
public MapDownlinkView<K,V> keepSynced(boolean keepSynced)
- Specified by:
keepSyncedin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
keepSyncedin interfaceswim.api.warp.WarpDownlink- Specified by:
keepSyncedin classWarpDownlinkView
-
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- 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>- Specified by:
observein interfaceswim.api.warp.WarpDownlink- Overrides:
observein classWarpDownlinkView
-
unobserve
public MapDownlinkView<K,V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.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>- Specified by:
unobservein interfaceswim.api.warp.WarpDownlink- Overrides:
unobservein classWarpDownlinkView
-
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.warp.function.WillReceive willReceive)
- Specified by:
willReceivein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willReceivein interfaceswim.api.warp.WarpDownlink- Specified by:
willReceivein classWarpDownlinkView
-
didReceive
public MapDownlinkView<K,V> didReceive(swim.api.warp.function.DidReceive didReceive)
- Specified by:
didReceivein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didReceivein interfaceswim.api.warp.WarpDownlink- Specified by:
didReceivein classWarpDownlinkView
-
willCommand
public MapDownlinkView<K,V> willCommand(swim.api.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willCommandin interfaceswim.api.warp.WarpDownlink- Specified by:
willCommandin classWarpDownlinkView
-
willLink
public MapDownlinkView<K,V> willLink(swim.api.warp.function.WillLink willLink)
- Specified by:
willLinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willLinkin interfaceswim.api.warp.WarpDownlink- Specified by:
willLinkin classWarpDownlinkView
-
didLink
public MapDownlinkView<K,V> didLink(swim.api.warp.function.DidLink didLink)
- Specified by:
didLinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didLinkin interfaceswim.api.warp.WarpDownlink- Specified by:
didLinkin classWarpDownlinkView
-
willSync
public MapDownlinkView<K,V> willSync(swim.api.warp.function.WillSync willSync)
- Specified by:
willSyncin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willSyncin interfaceswim.api.warp.WarpDownlink- Specified by:
willSyncin classWarpDownlinkView
-
didSync
public MapDownlinkView<K,V> didSync(swim.api.warp.function.DidSync didSync)
- Specified by:
didSyncin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didSyncin interfaceswim.api.warp.WarpDownlink- Specified by:
didSyncin classWarpDownlinkView
-
willUnlink
public MapDownlinkView<K,V> willUnlink(swim.api.warp.function.WillUnlink willUnlink)
- Specified by:
willUnlinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
willUnlinkin interfaceswim.api.warp.WarpDownlink- Specified by:
willUnlinkin classWarpDownlinkView
-
didUnlink
public MapDownlinkView<K,V> didUnlink(swim.api.warp.function.DidUnlink didUnlink)
- Specified by:
didUnlinkin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didUnlinkin interfaceswim.api.warp.WarpDownlink- Specified by:
didUnlinkin classWarpDownlinkView
-
didConnect
public MapDownlinkView<K,V> didConnect(swim.api.function.DidConnect didConnect)
- Specified by:
didConnectin interfaceswim.api.Downlink- Specified by:
didConnectin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didConnectin interfaceswim.api.warp.WarpDownlink- Specified by:
didConnectin classWarpDownlinkView
-
didDisconnect
public MapDownlinkView<K,V> didDisconnect(swim.api.function.DidDisconnect didDisconnect)
- Specified by:
didDisconnectin interfaceswim.api.Downlink- Specified by:
didDisconnectin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didDisconnectin interfaceswim.api.warp.WarpDownlink- Specified by:
didDisconnectin classWarpDownlinkView
-
didClose
public MapDownlinkView<K,V> didClose(swim.api.function.DidClose didClose)
- Specified by:
didClosein interfaceswim.api.Downlink- Specified by:
didClosein interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didClosein interfaceswim.api.warp.WarpDownlink- Specified by:
didClosein classWarpDownlinkView
-
didFail
public MapDownlinkView<K,V> didFail(swim.api.function.DidFail didFail)
- Specified by:
didFailin interfaceswim.api.Downlink- Specified by:
didFailin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
didFailin interfaceswim.api.warp.WarpDownlink- Specified by:
didFailin classWarpDownlinkView
-
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
public Map.Entry<Boolean,V> dispatchWillUpdate(K key, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(K key, V newValue, V oldValue, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(K key, boolean preemptive)
-
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
public MapDownlinkModel createDownlinkModel()
- Specified by:
createDownlinkModelin classWarpDownlinkView
-
open
public MapDownlinkView<K,V> open()
- Specified by:
openin interfaceswim.api.Downlink- Specified by:
openin interfaceswim.api.downlink.MapDownlink<K,V>- Specified by:
openin interfaceswim.api.warp.WarpDownlink- Specified by:
openin classWarpDownlinkView
-
close
public void close()
- Specified by:
closein interfaceswim.api.Link- Overrides:
closein 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()
-
decohereOutputKey
public void decohereOutputKey(K key, swim.streamlet.KeyEffect effect)
-
decohereInputKey
public void decohereInputKey(K key, swim.streamlet.KeyEffect effect)
-
decohereKey
public void decohereKey(K key, swim.streamlet.KeyEffect effect)
-
decohereOutput
public void decohereOutput()
- Specified by:
decohereOutputin interfaceswim.streamlet.Inlet<K>
-
decohereInput
public void decohereInput()
- Specified by:
decohereInputin interfaceswim.streamlet.Outlet<K>
-
decohere
public void decohere()
-
recohereOutputKey
public void recohereOutputKey(K key, int version)
-
recohereInputKey
public void recohereInputKey(K key, int version)
-
recohereKey
public void recohereKey(K key, int version)
-
recohereOutput
public void recohereOutput(int version)
- Specified by:
recohereOutputin interfaceswim.streamlet.Inlet<K>
-
recohereInput
public void recohereInput(int version)
- Specified by:
recohereInputin interfaceswim.streamlet.Outlet<K>
-
recohere
public void recohere(int version)
-
willDecohereKey
protected void willDecohereKey(K key, swim.streamlet.KeyEffect effect)
-
onDecohereKey
protected void onDecohereKey(K key, swim.streamlet.KeyEffect effect)
-
didDecohereKey
protected void didDecohereKey(K key, swim.streamlet.KeyEffect effect)
-
willDecohere
protected void willDecohere()
-
onDecohere
protected void onDecohere()
-
didDecohere
protected void didDecohere()
-
willRecohereKey
protected void willRecohereKey(K key, swim.streamlet.KeyEffect effect, int version)
-
onRecohereKey
protected void onRecohereKey(K key, swim.streamlet.KeyEffect effect, int version)
-
didRecohereKey
protected void didRecohereKey(K key, swim.streamlet.KeyEffect effect, int version)
-
willRecohere
protected void willRecohere(int version)
-
onRecohere
protected void onRecohere(int version)
-
didRecohere
protected void didRecohere(int version)
-
-