- java.lang.Object
-
- swim.runtime.AbstractDownlinkBinding
-
- swim.runtime.DownlinkModel<View>
-
- swim.runtime.warp.WarpDownlinkModem<View>
-
- swim.runtime.warp.WarpDownlinkModel<View>
-
- swim.runtime.warp.MapDownlinkModem<MapDownlinkView<?,?>>
-
- swim.runtime.downlink.MapDownlinkModel
-
- All Implemented Interfaces:
LinkBinding,WarpBinding,Log
public class MapDownlinkModel extends MapDownlinkModem<MapDownlinkView<?,?>>
-
-
Field Summary
Fields Modifier and Type Field Description protected intflagsprotected BTreeMap<Value,Value,Value>stateprotected static intSTATEFUL-
Fields inherited from class swim.runtime.warp.WarpDownlinkModem
body, cellContext, EXEC_DELTA, EXEC_TIME, linkContext, prio, rate, status
-
Fields inherited from class swim.runtime.DownlinkModel
views, VIEWS
-
Fields inherited from class swim.runtime.AbstractDownlinkBinding
hostUri, laneUri, meshUri, nodeUri
-
-
Method Summary
-
Methods inherited from class swim.runtime.warp.MapDownlinkModem
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
accumulateExecTime, body, cellContext, closeDown, collectProfile, command, command, command, command, cueDown, cueUp, didClose, didCloseUp, didConnect, didDisconnect, didFail, didFailUp, didLink, didOpen, didRemoveDownlink, didSync, didUnlink, didUpdateMetrics, feedDown, flushMetrics, link, linkContext, linkRequest, linkWrapper, onCommand, onEvent, openDown, openMetaDownlink, prio, pullUp, pushDown, pushDownUnknown, pushUp, pushUp, rate, reportMetrics, setCellContext, setLinkContext, skipDown, sync, syncRequest, unlink, unlinkRequest, willLink, willSync, willUnlink
-
Methods inherited from class swim.runtime.DownlinkModel
addDownlink, removeDownlink, removeDownlinks, reopen
-
Methods inherited from class swim.runtime.AbstractDownlinkBinding
bottomLink, cellAddressDown, cipherSuite, cipherSuiteDown, debug, debugDown, error, errorDown, fail, failDown, 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, setHostUri, setNodeUri, 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
bottomLink, cellAddressDown, cipherSuiteDown, debugDown, errorDown, failDown, hostUri, infoDown, isConnectedDown, isRemoteDown, isSecureDown, laneUri, linkKey, localAddressDown, localCertificatesDown, localIdentityDown, localPrincipalDown, meshUri, nodeUri, remoteAddressDown, remoteCertificatesDown, remoteIdentityDown, remotePrincipalDown, reopen, securityProtocolDown, setHostUri, setNodeUri, 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(Push<EventMessage> push)
- Overrides:
pushDownEventin classWarpDownlinkModel<MapDownlinkView<?,?>>
-
nextUpKey
protected Value nextUpKey(Value key)
- Specified by:
nextUpKeyin classMapDownlinkModem<MapDownlinkView<?,?>>
-
didAddDownlink
protected void didAddDownlink(MapDownlinkView<?,?> view)
- Overrides:
didAddDownlinkin classWarpDownlinkModem<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()
-
-