- java.lang.Object
-
- swim.runtime.AbstractDownlinkBinding
-
- swim.runtime.DownlinkModel<View>
-
- swim.runtime.warp.WarpDownlinkModem<View>
-
- swim.runtime.warp.WarpDownlinkModel<View>
-
- swim.runtime.warp.PartialDownlinkModem<MapDownlinkView<?,?>>
-
- swim.runtime.downlink.MapDownlinkModel
-
- All Implemented Interfaces:
LinkBinding
,WarpBinding
,Log
public class MapDownlinkModel extends PartialDownlinkModem<MapDownlinkView<?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
flags
protected BTreeMap<Value,Value,Value>
state
protected static int
STATEFUL
-
Fields inherited from class swim.runtime.warp.WarpDownlinkModem
body, cellContext, linkContext, prio, rate, status
-
Fields inherited from class swim.runtime.DownlinkModel
views
-
Fields inherited from class swim.runtime.AbstractDownlinkBinding
hostUri, laneUri, meshUri, nodeUri
-
-
Method Summary
-
Methods inherited from class swim.runtime.warp.PartialDownlinkModem
cueUpKey, cueUpKeys, feedUp, nextUpCue, nextUpQueue, queueUp, upQueueIsEmpty
-
Methods inherited from class swim.runtime.warp.WarpDownlinkModel
keepLinked, keepSynced, pullUpCommand, pullUpLink, pullUpSync, pullUpUnlink, pushDownLinked, pushDownSynced, pushDownUnlinked
-
Methods inherited from class swim.runtime.warp.WarpDownlinkModem
body, cellContext, closeDown, command, command, cueDown, cueUp, didClose, didCloseUp, didConnect, didDisconnect, didFail, didLink, didOpen, didSync, didUnlink, feedDown, link, linkContext, linkRequest, linkWrapper, nextUpCueCommand, nextUpQueueCommand, onCommand, onEvent, openDown, prio, pullUp, pushDown, pushDownEnvelope, pushUp, rate, reopen, setCellContext, setLinkContext, skipDown, sync, syncRequest, unlink, unlinkRequest, willLink, willSync, willUnlink
-
Methods inherited from class swim.runtime.DownlinkModel
addDownlink, didRemoveDownlink, removeDownlink
-
Methods inherited from class swim.runtime.AbstractDownlinkBinding
cipherSuite, cipherSuiteDown, debug, debugDown, error, errorDown, hostUri, info, infoDown, isConnected, isConnectedDown, isRemote, isRemoteDown, isSecure, isSecureDown, laneUri, linkKey, localAddress, localAddressDown, localCertificates, localCertificatesDown, localIdentity, localIdentityDown, localPrincipal, localPrincipalDown, meshUri, nodeUri, remoteAddress, remoteAddressDown, remoteCertificates, remoteCertificatesDown, remoteIdentity, remoteIdentityDown, remotePrincipal, remotePrincipalDown, securityProtocol, securityProtocolDown, trace, traceDown, unwrapLink, warn, warnDown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.runtime.LinkBinding
cipherSuiteDown, debugDown, errorDown, hostUri, infoDown, isConnectedDown, isRemoteDown, isSecureDown, laneUri, linkKey, localAddressDown, localCertificatesDown, localIdentityDown, localPrincipalDown, meshUri, nodeUri, remoteAddressDown, remoteCertificatesDown, remoteIdentityDown, remotePrincipalDown, securityProtocolDown, traceDown, unwrapLink, warnDown
-
-
-
-
Field Detail
-
flags
protected int flags
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
-
Method Detail
-
isStateful
public final boolean isStateful()
-
isStateful
public MapDownlinkModel isStateful(boolean isStateful)
-
pushDownEvent
protected void pushDownEvent(EventMessage message)
- Overrides:
pushDownEvent
in classWarpDownlinkModel<MapDownlinkView<?,?>>
-
nextUpKey
protected Value nextUpKey(Value key)
- Specified by:
nextUpKey
in classPartialDownlinkModem<MapDownlinkView<?,?>>
-
didAddDownlink
protected void didAddDownlink(MapDownlinkView<?,?> view)
- Overrides:
didAddDownlink
in classDownlinkModel<MapDownlinkView<?,?>>
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
containsKey
public boolean containsKey(Object key)
-
containsValue
public boolean containsValue(Object value)
-
indexOf
public int indexOf(Object key)
-
firstKey
public Value firstKey()
-
firstValue
public Value firstValue()
-
lastKey
public Value lastKey()
-
lastValue
public Value lastValue()
-
put
public <K,V> V put(MapDownlinkView<K,V> view, K keyObject, V newObject)
-
remove
public <K,V> V remove(MapDownlinkView<K,V> view, K keyObject)
-
drop
public void drop(MapDownlinkView<?,?> view, int lower)
-
take
public void take(MapDownlinkView<?,?> view, int upper)
-
clear
public void clear(MapDownlinkView<?,?> view)
-
headMap
public OrderedMap<Value,Value> headMap(Value toKey)
-
tailMap
public OrderedMap<Value,Value> tailMap(Value fromKey)
-
subMap
public OrderedMap<Value,Value> subMap(Value fromKey, Value toKey)
-
values
public Collection<Value> values()
-
iterator
public OrderedMapCursor<Value,Value> iterator()
-
-