- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.JoinValueLaneView<K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>,Map<K,V>,swim.api.downlink.DownlinkFactory,swim.api.Lane,swim.api.lane.JoinValueLane<K,V>,swim.api.ref.SwimRef,swim.api.warp.WarpLane,swim.observable.Observable<Object>,swim.observable.ObservableMap<K,V>,CellContext,TierBinding,swim.util.Log
public class JoinValueLaneView<K,V> extends WarpLaneView implements swim.api.lane.JoinValueLane<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected swim.api.data.MapData<K,V>dataViewprotected intflagsprotected swim.structure.Form<K>keyFormprotected JoinValueLaneModellaneBindingprotected swim.structure.Form<V>valueForm-
Fields inherited from class swim.runtime.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(swim.api.agent.AgentContext agentContext, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.agent.AgentContextagentContext()voidclear()voidclose()booleancontainsKey(Object key)booleancontainsValue(Object value)JoinValueLaneModelcreateLaneBinding()JoinValueLaneView<K,V>didClear(swim.observable.function.DidClear didClear)JoinValueLaneView<K,V>didCommand(swim.api.warp.function.DidCommand didCommand)JoinValueLaneView<K,V>didDownlink(swim.api.lane.function.DidDownlinkValue<K> didDownlink)JoinValueLaneView<K,V>didEnter(swim.api.warp.function.DidEnter didEnter)JoinValueLaneView<K,V>didLeave(swim.api.warp.function.DidLeave didLeave)JoinValueLaneView<K,V>didRemove(swim.observable.function.DidRemoveKey<K,V> didRemove)JoinValueLaneView<K,V>didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)JoinValueLaneView<K,V>didUplink(swim.api.warp.function.DidUplink didUplink)booleandispatchDidClear(swim.api.Link link, boolean preemptive)booleandispatchDidDownlink(K key, swim.api.downlink.ValueDownlink<?> downlink, boolean preemptive)booleandispatchDidRemove(swim.api.Link link, K key, V oldValue, boolean preemptive)booleandispatchDidUpdate(swim.api.Link link, K key, V newValue, V oldValue, boolean preemptive)booleandispatchWillClear(swim.api.Link link, boolean preemptive)Map.Entry<Boolean,swim.api.downlink.ValueDownlink<?>>dispatchWillDownlink(K key, swim.api.downlink.ValueDownlink<?> downlink, boolean preemptive)booleandispatchWillRemove(swim.api.Link link, K key, boolean preemptive)Map.Entry<Boolean,V>dispatchWillUpdate(swim.api.Link link, K key, V newValue, boolean preemptive)swim.api.downlink.ValueDownlink<V>downlink(K key)Iterator<Map.Entry<K,swim.api.downlink.ValueDownlink<?>>>downlinkIterator()Set<Map.Entry<K,V>>entrySet()Vget(Object key)swim.api.downlink.ValueDownlink<?>getDownlink(Object key)booleanisEmpty()booleanisResident()JoinValueLaneView<K,V>isResident(boolean isResident)booleanisTransient()JoinValueLaneView<K,V>isTransient(boolean isTransient)Iterator<Map.Entry<K,V>>iterator()<K2> JoinValueLaneView<K2,V>keyClass(Class<K2> keyClass)swim.structure.Form<K>keyForm()<K2> JoinValueLaneView<K2,V>keyForm(swim.structure.Form<K2> keyForm)Iterator<K>keyIterator()Set<K>keySet()JoinValueLaneModellaneBinding()voidlaneDidClear()voidlaneDidDownlink(K key, swim.api.downlink.ValueDownlink<V> downlink)voidlaneDidRemove(K key, V oldValue)voidlaneDidUpdate(K key, V newValue, V oldValue)voidlaneWillClear()swim.api.downlink.ValueDownlink<V>laneWillDownlink(K key, swim.api.downlink.ValueDownlink<V> downlink)voidlaneWillRemove(K key)VlaneWillUpdate(K key, V newValue)JoinValueLaneView<K,V>observe(Object observer)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> map)Vremove(Object key)voidsetKeyForm(swim.structure.Form<K> keyForm)voidsetValueForm(swim.structure.Form<V> valueForm)intsize()protected ObjecttypesafeObservers(Object observers)JoinValueLaneView<K,V>unobserve(Object observer)<V2> JoinValueLaneView<K,V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> JoinValueLaneView<K,V2>valueForm(swim.structure.Form<V2> valueForm)Iterator<V>valueIterator()Collection<V>values()JoinValueLaneView<K,V>willClear(swim.observable.function.WillClear willClear)JoinValueLaneView<K,V>willCommand(swim.api.warp.function.WillCommand willCommand)JoinValueLaneView<K,V>willDownlink(swim.api.lane.function.WillDownlinkValue<K> willDownlink)JoinValueLaneView<K,V>willEnter(swim.api.warp.function.WillEnter willEnter)JoinValueLaneView<K,V>willLeave(swim.api.warp.function.WillLeave willLeave)protected voidwillLoad()JoinValueLaneView<K,V>willRemove(swim.observable.function.WillRemoveKey<K> willRemove)JoinValueLaneView<K,V>willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)JoinValueLaneView<K,V>willUplink(swim.api.warp.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.warp.WarpLaneView
dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidUplink, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillUplink, laneDidCommand, laneDidEnter, laneDidLeave, laneDidUplink, laneWillCommand, laneWillEnter, laneWillLeave, laneWillUplink
-
Methods inherited from class swim.runtime.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.runtime.AbstractTierBinding
activate, 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.runtime.AbstractSwimRef
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 swim.api.agent.AgentContext agentContext
-
keyForm
protected swim.structure.Form<K> keyForm
-
valueForm
protected swim.structure.Form<V> valueForm
-
flags
protected int flags
-
laneBinding
protected JoinValueLaneModel laneBinding
-
-
Method Detail
-
agentContext
public swim.api.agent.AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
laneBinding
public JoinValueLaneModel laneBinding()
- Specified by:
laneBindingin classLaneView
-
createLaneBinding
public JoinValueLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
keyForm
public final swim.structure.Form<K> keyForm()
-
keyForm
public <K2> JoinValueLaneView<K2,V> keyForm(swim.structure.Form<K2> keyForm)
-
keyClass
public <K2> JoinValueLaneView<K2,V> keyClass(Class<K2> keyClass)
-
setKeyForm
public void setKeyForm(swim.structure.Form<K> keyForm)
-
valueForm
public final swim.structure.Form<V> valueForm()
-
valueForm
public <V2> JoinValueLaneView<K,V2> valueForm(swim.structure.Form<V2> valueForm)
-
valueClass
public <V2> JoinValueLaneView<K,V2> valueClass(Class<V2> valueClass)
-
setValueForm
public void setValueForm(swim.structure.Form<V> valueForm)
-
isResident
public final boolean isResident()
-
isResident
public JoinValueLaneView<K,V> isResident(boolean isResident)
-
isTransient
public final boolean isTransient()
-
isTransient
public JoinValueLaneView<K,V> isTransient(boolean isTransient)
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
close
public void close()
- Specified by:
closein interfaceswim.api.Lane- Specified by:
closein interfaceswim.api.ref.SwimRef- Specified by:
closein interfaceTierBinding- Specified by:
closein classLaneView
-
observe
public JoinValueLaneView<K,V> observe(Object observer)
- Specified by:
observein interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
observein interfaceswim.api.Lane- Specified by:
observein interfaceswim.observable.Observable<K>- Specified by:
observein interfaceswim.observable.ObservableMap<K,V>- Specified by:
observein interfaceswim.api.warp.WarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public JoinValueLaneView<K,V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
unobservein interfaceswim.api.Lane- Specified by:
unobservein interfaceswim.observable.Observable<K>- Specified by:
unobservein interfaceswim.observable.ObservableMap<K,V>- Specified by:
unobservein interfaceswim.api.warp.WarpLane- Overrides:
unobservein classWarpLaneView
-
willDownlink
public JoinValueLaneView<K,V> willDownlink(swim.api.lane.function.WillDownlinkValue<K> willDownlink)
-
didDownlink
public JoinValueLaneView<K,V> didDownlink(swim.api.lane.function.DidDownlinkValue<K> didDownlink)
-
willUpdate
public JoinValueLaneView<K,V> willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)
-
didUpdate
public JoinValueLaneView<K,V> didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)
-
willRemove
public JoinValueLaneView<K,V> willRemove(swim.observable.function.WillRemoveKey<K> willRemove)
-
didRemove
public JoinValueLaneView<K,V> didRemove(swim.observable.function.DidRemoveKey<K,V> didRemove)
-
willClear
public JoinValueLaneView<K,V> willClear(swim.observable.function.WillClear willClear)
-
didClear
public JoinValueLaneView<K,V> didClear(swim.observable.function.DidClear didClear)
-
willCommand
public JoinValueLaneView<K,V> willCommand(swim.api.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
willCommandin interfaceswim.api.warp.WarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public JoinValueLaneView<K,V> didCommand(swim.api.warp.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
didCommandin interfaceswim.api.warp.WarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public JoinValueLaneView<K,V> willUplink(swim.api.warp.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
willUplinkin interfaceswim.api.warp.WarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public JoinValueLaneView<K,V> didUplink(swim.api.warp.function.DidUplink didUplink)
- Specified by:
didUplinkin interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
didUplinkin interfaceswim.api.warp.WarpLane- Specified by:
didUplinkin classWarpLaneView
-
willEnter
public JoinValueLaneView<K,V> willEnter(swim.api.warp.function.WillEnter willEnter)
- Specified by:
willEnterin interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
willEnterin interfaceswim.api.warp.WarpLane- Specified by:
willEnterin classWarpLaneView
-
didEnter
public JoinValueLaneView<K,V> didEnter(swim.api.warp.function.DidEnter didEnter)
- Specified by:
didEnterin interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
didEnterin interfaceswim.api.warp.WarpLane- Specified by:
didEnterin classWarpLaneView
-
willLeave
public JoinValueLaneView<K,V> willLeave(swim.api.warp.function.WillLeave willLeave)
- Specified by:
willLeavein interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
willLeavein interfaceswim.api.warp.WarpLane- Specified by:
willLeavein classWarpLaneView
-
didLeave
public JoinValueLaneView<K,V> didLeave(swim.api.warp.function.DidLeave didLeave)
- Specified by:
didLeavein interfaceswim.api.lane.JoinValueLane<K,V>- Specified by:
didLeavein interfaceswim.api.warp.WarpLane- Specified by:
didLeavein classWarpLaneView
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(swim.api.Link link, K key, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(swim.api.Link link, K key, V newValue, V oldValue, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(swim.api.Link link, K key, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(swim.api.Link link, K key, V oldValue, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(swim.api.Link link, boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(swim.api.Link link, boolean preemptive)
-
dispatchWillDownlink
public Map.Entry<Boolean,swim.api.downlink.ValueDownlink<?>> dispatchWillDownlink(K key, swim.api.downlink.ValueDownlink<?> downlink, boolean preemptive)
-
dispatchDidDownlink
public boolean dispatchDidDownlink(K key, swim.api.downlink.ValueDownlink<?> downlink, boolean preemptive)
-
laneWillDownlink
public swim.api.downlink.ValueDownlink<V> laneWillDownlink(K key, swim.api.downlink.ValueDownlink<V> downlink)
-
laneWillRemove
public void laneWillRemove(K key)
-
laneWillClear
public void laneWillClear()
-
laneDidClear
public void laneDidClear()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
getDownlink
public swim.api.downlink.ValueDownlink<?> getDownlink(Object key)
-
-