- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.LaneView
-
- swim.system.warp.WarpLaneView
-
- swim.system.lane.JoinMapLaneView<L,K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>
,Map<K,V>
,DownlinkFactory
,Lane
,JoinMapLane<L,K,V>
,WarpRef
,WarpLane
,Observable<Object>
,ObservableMap<K,V>
,CellContext
,TierBinding
,Log
public class JoinMapLaneView<L,K,V> extends WarpLaneView implements JoinMapLane<L,K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentContext
agentContext
protected MapData<K,V>
dataView
protected int
flags
protected Form<K>
keyForm
protected JoinMapLaneModel
laneBinding
protected Form<L>
linkForm
protected Form<V>
valueForm
-
Fields inherited from class swim.system.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
-
Constructor Summary
Constructors Constructor Description JoinMapLaneView(AgentContext agentContext, Form<L> linkForm, Form<K> keyForm, Form<V> valueForm)
-
Method Summary
-
Methods inherited from class swim.system.warp.WarpLaneView
dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidUplink, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillUplink, laneDidCommand, laneDidEnter, laneDidLeave, laneDidUplink, laneWillCommand, laneWillEnter, laneWillLeave, laneWillUplink
-
Methods inherited from class swim.system.LaneView
bindDownlink, bottomLane, cellAddress, closeDownlink, debug, edgeName, error, fail, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, openMetaDownlink, policy, pushDown, reportDown, schedule, stage, store, tierContext, trace, unwrapLane, warn
-
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, didClose, didFail, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload, willClose, willOpen, willStart, willStop, willUnload
-
Methods inherited from class swim.system.AbstractWarpRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
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 java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
agentContext
public AgentContext agentContext()
- Specified by:
agentContext
in classLaneView
-
laneBinding
public JoinMapLaneModel laneBinding()
- Specified by:
laneBinding
in classLaneView
-
createLaneBinding
public JoinMapLaneModel createLaneBinding()
- Specified by:
createLaneBinding
in classLaneView
-
linkForm
public <L2> JoinMapLaneView<L2,K,V> linkForm(Form<L2> linkForm)
- Specified by:
linkForm
in interfaceJoinMapLane<L,K,V>
-
linkClass
public <L2> JoinMapLaneView<L2,K,V> linkClass(Class<L2> linkClass)
- Specified by:
linkClass
in interfaceJoinMapLane<L,K,V>
-
keyForm
public <K2> JoinMapLaneView<L,K2,V> keyForm(Form<K2> keyForm)
- Specified by:
keyForm
in interfaceJoinMapLane<L,K,V>
-
keyClass
public <K2> JoinMapLaneView<L,K2,V> keyClass(Class<K2> keyClass)
- Specified by:
keyClass
in interfaceJoinMapLane<L,K,V>
-
valueForm
public final Form<V> valueForm()
- Specified by:
valueForm
in interfaceJoinMapLane<L,K,V>
-
valueForm
public <V2> JoinMapLaneView<L,K,V2> valueForm(Form<V2> valueForm)
- Specified by:
valueForm
in interfaceJoinMapLane<L,K,V>
-
valueClass
public <V2> JoinMapLaneView<L,K,V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceJoinMapLane<L,K,V>
-
isResident
public final boolean isResident()
- Specified by:
isResident
in interfaceJoinMapLane<L,K,V>
-
isResident
public JoinMapLaneView<L,K,V> isResident(boolean isResident)
- Specified by:
isResident
in interfaceJoinMapLane<L,K,V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransient
in interfaceJoinMapLane<L,K,V>
-
isTransient
public JoinMapLaneView<L,K,V> isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceJoinMapLane<L,K,V>
-
willLoad
protected void willLoad()
- Overrides:
willLoad
in classAbstractTierBinding
-
close
public void close()
-
observe
public JoinMapLaneView<L,K,V> observe(Object observer)
- Specified by:
observe
in interfaceJoinMapLane<L,K,V>
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceObservable<L>
- Specified by:
observe
in interfaceObservableMap<L,K>
- Specified by:
observe
in interfaceWarpLane
- Overrides:
observe
in classWarpLaneView
-
unobserve
public JoinMapLaneView<L,K,V> unobserve(Object observer)
- Specified by:
unobserve
in interfaceJoinMapLane<L,K,V>
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceObservable<L>
- Specified by:
unobserve
in interfaceObservableMap<L,K>
- Specified by:
unobserve
in interfaceWarpLane
- Overrides:
unobserve
in classWarpLaneView
-
willDownlink
public JoinMapLaneView<L,K,V> willDownlink(WillDownlinkMap<L> willDownlink)
- Specified by:
willDownlink
in interfaceJoinMapLane<L,K,V>
-
didDownlink
public JoinMapLaneView<L,K,V> didDownlink(DidDownlinkMap<L> didDownlink)
- Specified by:
didDownlink
in interfaceJoinMapLane<L,K,V>
-
willUpdate
public JoinMapLaneView<L,K,V> willUpdate(WillUpdateKey<K,V> willUpdate)
- Specified by:
willUpdate
in interfaceJoinMapLane<L,K,V>
- Specified by:
willUpdate
in interfaceObservableMap<L,K>
-
didUpdate
public JoinMapLaneView<L,K,V> didUpdate(DidUpdateKey<K,V> didUpdate)
- Specified by:
didUpdate
in interfaceJoinMapLane<L,K,V>
- Specified by:
didUpdate
in interfaceObservableMap<L,K>
-
willRemove
public JoinMapLaneView<L,K,V> willRemove(WillRemoveKey<K> willRemove)
- Specified by:
willRemove
in interfaceJoinMapLane<L,K,V>
- Specified by:
willRemove
in interfaceObservableMap<L,K>
-
didRemove
public JoinMapLaneView<L,K,V> didRemove(DidRemoveKey<K,V> didRemove)
- Specified by:
didRemove
in interfaceJoinMapLane<L,K,V>
- Specified by:
didRemove
in interfaceObservableMap<L,K>
-
willClear
public JoinMapLaneView<L,K,V> willClear(WillClear willClear)
- Specified by:
willClear
in interfaceJoinMapLane<L,K,V>
- Specified by:
willClear
in interfaceObservableMap<L,K>
-
didClear
public JoinMapLaneView<L,K,V> didClear(DidClear didClear)
- Specified by:
didClear
in interfaceJoinMapLane<L,K,V>
- Specified by:
didClear
in interfaceObservableMap<L,K>
-
willCommand
public JoinMapLaneView<L,K,V> willCommand(WillCommand willCommand)
- Specified by:
willCommand
in interfaceJoinMapLane<L,K,V>
- Specified by:
willCommand
in interfaceWarpLane
- Specified by:
willCommand
in classWarpLaneView
-
didCommand
public JoinMapLaneView<L,K,V> didCommand(DidCommand didCommand)
- Specified by:
didCommand
in interfaceJoinMapLane<L,K,V>
- Specified by:
didCommand
in interfaceWarpLane
- Specified by:
didCommand
in classWarpLaneView
-
willUplink
public JoinMapLaneView<L,K,V> willUplink(WillUplink willUplink)
- Specified by:
willUplink
in interfaceJoinMapLane<L,K,V>
- Specified by:
willUplink
in interfaceWarpLane
- Specified by:
willUplink
in classWarpLaneView
-
didUplink
public JoinMapLaneView<L,K,V> didUplink(DidUplink didUplink)
- Specified by:
didUplink
in interfaceJoinMapLane<L,K,V>
- Specified by:
didUplink
in interfaceWarpLane
- Specified by:
didUplink
in classWarpLaneView
-
willEnter
public JoinMapLaneView<L,K,V> willEnter(WillEnter willEnter)
- Specified by:
willEnter
in interfaceJoinMapLane<L,K,V>
- Specified by:
willEnter
in interfaceWarpLane
- Specified by:
willEnter
in classWarpLaneView
-
didEnter
public JoinMapLaneView<L,K,V> didEnter(DidEnter didEnter)
- Specified by:
didEnter
in interfaceJoinMapLane<L,K,V>
- Specified by:
didEnter
in interfaceWarpLane
- Specified by:
didEnter
in classWarpLaneView
-
willLeave
public JoinMapLaneView<L,K,V> willLeave(WillLeave willLeave)
- Specified by:
willLeave
in interfaceJoinMapLane<L,K,V>
- Specified by:
willLeave
in interfaceWarpLane
- Specified by:
willLeave
in classWarpLaneView
-
didLeave
public JoinMapLaneView<L,K,V> didLeave(DidLeave didLeave)
- Specified by:
didLeave
in interfaceJoinMapLane<L,K,V>
- Specified by:
didLeave
in interfaceWarpLane
- Specified by:
didLeave
in classWarpLaneView
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(Link link, K key, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(Link link, K key, V newValue, V oldValue, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(Link link, K key, V oldValue, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(Link link, boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(Link link, boolean preemptive)
-
dispatchWillDownlink
public Map.Entry<Boolean,MapDownlink<?,?>> dispatchWillDownlink(L key, MapDownlink<?,?> downlink, boolean preemptive)
-
dispatchDidDownlink
public boolean dispatchDidDownlink(L key, MapDownlink<?,?> downlink, boolean preemptive)
-
laneWillDownlink
public MapDownlink<K,V> laneWillDownlink(L key, MapDownlink<K,V> downlink)
-
laneDidDownlink
public void laneDidDownlink(K key, MapDownlink<K,V> downlink)
-
laneWillRemove
public void laneWillRemove(K key)
-
laneWillClear
public void laneWillClear()
-
laneDidClear
public void laneDidClear()
-
downlink
public MapDownlink<K,V> downlink(L key)
- Specified by:
downlink
in interfaceJoinMapLane<L,K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<L,K>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<L,K>
-
getDownlink
public MapDownlink<?,?> getDownlink(Object key)
- Specified by:
getDownlink
in interfaceJoinMapLane<L,K,V>
-
keyIterator
public Iterator<K> keyIterator()
- Specified by:
keyIterator
in interfaceJoinMapLane<L,K,V>
-
valueIterator
public Iterator<V> valueIterator()
- Specified by:
valueIterator
in interfaceJoinMapLane<L,K,V>
-
downlinkIterator
public Iterator<Map.Entry<L,MapDownlink<?,?>>> downlinkIterator()
- Specified by:
downlinkIterator
in interfaceJoinMapLane<L,K,V>
-
-