- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.LaneView
-
- swim.system.warp.WarpLaneView
-
- swim.system.lane.JoinValueLaneView<K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>
,Map<K,V>
,DownlinkFactory
,Lane
,JoinValueLane<K,V>
,WarpRef
,WarpLane
,Observable<Object>
,ObservableMap<K,V>
,CellContext
,TierBinding
,Log
public class JoinValueLaneView<K,V> extends WarpLaneView implements JoinValueLane<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 JoinValueLaneModel
laneBinding
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 JoinValueLaneView(AgentContext agentContext, 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
-
-
-
-
Field Detail
-
agentContext
protected final AgentContext agentContext
-
laneBinding
protected JoinValueLaneModel laneBinding
-
flags
protected int flags
-
-
Constructor Detail
-
JoinValueLaneView
public JoinValueLaneView(AgentContext agentContext, Form<K> keyForm, Form<V> valueForm)
-
-
Method Detail
-
agentContext
public AgentContext agentContext()
- Specified by:
agentContext
in classLaneView
-
laneBinding
public JoinValueLaneModel laneBinding()
- Specified by:
laneBinding
in classLaneView
-
createLaneBinding
public JoinValueLaneModel createLaneBinding()
- Specified by:
createLaneBinding
in classLaneView
-
keyForm
public <K2> JoinValueLaneView<K2,V> keyForm(Form<K2> keyForm)
- Specified by:
keyForm
in interfaceJoinValueLane<K,V>
-
keyClass
public <K2> JoinValueLaneView<K2,V> keyClass(Class<K2> keyClass)
- Specified by:
keyClass
in interfaceJoinValueLane<K,V>
-
valueForm
public <V2> JoinValueLaneView<K,V2> valueForm(Form<V2> valueForm)
- Specified by:
valueForm
in interfaceJoinValueLane<K,V>
-
valueClass
public <V2> JoinValueLaneView<K,V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceJoinValueLane<K,V>
-
isResident
public final boolean isResident()
- Specified by:
isResident
in interfaceJoinValueLane<K,V>
-
isResident
public JoinValueLaneView<K,V> isResident(boolean isResident)
- Specified by:
isResident
in interfaceJoinValueLane<K,V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransient
in interfaceJoinValueLane<K,V>
-
isTransient
public JoinValueLaneView<K,V> isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceJoinValueLane<K,V>
-
willLoad
protected void willLoad()
- Overrides:
willLoad
in classAbstractTierBinding
-
close
public void close()
-
observe
public JoinValueLaneView<K,V> observe(Object observer)
- Specified by:
observe
in interfaceJoinValueLane<K,V>
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceObservable<K>
- Specified by:
observe
in interfaceObservableMap<K,V>
- Specified by:
observe
in interfaceWarpLane
- Overrides:
observe
in classWarpLaneView
-
unobserve
public JoinValueLaneView<K,V> unobserve(Object observer)
- Specified by:
unobserve
in interfaceJoinValueLane<K,V>
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceObservable<K>
- Specified by:
unobserve
in interfaceObservableMap<K,V>
- Specified by:
unobserve
in interfaceWarpLane
- Overrides:
unobserve
in classWarpLaneView
-
willDownlink
public JoinValueLaneView<K,V> willDownlink(WillDownlinkValue<K> willDownlink)
- Specified by:
willDownlink
in interfaceJoinValueLane<K,V>
-
didDownlink
public JoinValueLaneView<K,V> didDownlink(DidDownlinkValue<K> didDownlink)
- Specified by:
didDownlink
in interfaceJoinValueLane<K,V>
-
willUpdate
public JoinValueLaneView<K,V> willUpdate(WillUpdateKey<K,V> willUpdate)
- Specified by:
willUpdate
in interfaceJoinValueLane<K,V>
- Specified by:
willUpdate
in interfaceObservableMap<K,V>
-
didUpdate
public JoinValueLaneView<K,V> didUpdate(DidUpdateKey<K,V> didUpdate)
- Specified by:
didUpdate
in interfaceJoinValueLane<K,V>
- Specified by:
didUpdate
in interfaceObservableMap<K,V>
-
willRemove
public JoinValueLaneView<K,V> willRemove(WillRemoveKey<K> willRemove)
- Specified by:
willRemove
in interfaceJoinValueLane<K,V>
- Specified by:
willRemove
in interfaceObservableMap<K,V>
-
didRemove
public JoinValueLaneView<K,V> didRemove(DidRemoveKey<K,V> didRemove)
- Specified by:
didRemove
in interfaceJoinValueLane<K,V>
- Specified by:
didRemove
in interfaceObservableMap<K,V>
-
willClear
public JoinValueLaneView<K,V> willClear(WillClear willClear)
- Specified by:
willClear
in interfaceJoinValueLane<K,V>
- Specified by:
willClear
in interfaceObservableMap<K,V>
-
didClear
public JoinValueLaneView<K,V> didClear(DidClear didClear)
- Specified by:
didClear
in interfaceJoinValueLane<K,V>
- Specified by:
didClear
in interfaceObservableMap<K,V>
-
willCommand
public JoinValueLaneView<K,V> willCommand(WillCommand willCommand)
- Specified by:
willCommand
in interfaceJoinValueLane<K,V>
- Specified by:
willCommand
in interfaceWarpLane
- Specified by:
willCommand
in classWarpLaneView
-
didCommand
public JoinValueLaneView<K,V> didCommand(DidCommand didCommand)
- Specified by:
didCommand
in interfaceJoinValueLane<K,V>
- Specified by:
didCommand
in interfaceWarpLane
- Specified by:
didCommand
in classWarpLaneView
-
willUplink
public JoinValueLaneView<K,V> willUplink(WillUplink willUplink)
- Specified by:
willUplink
in interfaceJoinValueLane<K,V>
- Specified by:
willUplink
in interfaceWarpLane
- Specified by:
willUplink
in classWarpLaneView
-
didUplink
public JoinValueLaneView<K,V> didUplink(DidUplink didUplink)
- Specified by:
didUplink
in interfaceJoinValueLane<K,V>
- Specified by:
didUplink
in interfaceWarpLane
- Specified by:
didUplink
in classWarpLaneView
-
willEnter
public JoinValueLaneView<K,V> willEnter(WillEnter willEnter)
- Specified by:
willEnter
in interfaceJoinValueLane<K,V>
- Specified by:
willEnter
in interfaceWarpLane
- Specified by:
willEnter
in classWarpLaneView
-
didEnter
public JoinValueLaneView<K,V> didEnter(DidEnter didEnter)
- Specified by:
didEnter
in interfaceJoinValueLane<K,V>
- Specified by:
didEnter
in interfaceWarpLane
- Specified by:
didEnter
in classWarpLaneView
-
willLeave
public JoinValueLaneView<K,V> willLeave(WillLeave willLeave)
- Specified by:
willLeave
in interfaceJoinValueLane<K,V>
- Specified by:
willLeave
in interfaceWarpLane
- Specified by:
willLeave
in classWarpLaneView
-
didLeave
public JoinValueLaneView<K,V> didLeave(DidLeave didLeave)
- Specified by:
didLeave
in interfaceJoinValueLane<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,ValueDownlink<?>> dispatchWillDownlink(K key, ValueDownlink<?> downlink, boolean preemptive)
-
dispatchDidDownlink
public boolean dispatchDidDownlink(K key, ValueDownlink<?> downlink, boolean preemptive)
-
laneWillDownlink
public ValueDownlink<V> laneWillDownlink(K key, ValueDownlink<V> downlink)
-
laneDidDownlink
public void laneDidDownlink(K key, ValueDownlink<V> downlink)
-
laneWillRemove
public void laneWillRemove(K key)
-
laneWillClear
public void laneWillClear()
-
laneDidClear
public void laneDidClear()
-
downlink
public ValueDownlink<V> downlink(K key)
- Specified by:
downlink
in interfaceJoinValueLane<K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<K,V>
-
getDownlink
public ValueDownlink<?> getDownlink(Object key)
- Specified by:
getDownlink
in interfaceJoinValueLane<K,V>
-
keyIterator
public Iterator<K> keyIterator()
- Specified by:
keyIterator
in interfaceJoinValueLane<K,V>
-
valueIterator
public Iterator<V> valueIterator()
- Specified by:
valueIterator
in interfaceJoinValueLane<K,V>
-
downlinkIterator
public Iterator<Map.Entry<K,ValueDownlink<?>>> downlinkIterator()
- Specified by:
downlinkIterator
in interfaceJoinValueLane<K,V>
-
-