- java.lang.Object
-
- swim.runtime.lane.LaneView
-
- swim.runtime.lane.JoinMapLaneView<L,K,V>
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>,Map<K,V>,swim.api.http.HttpLane<Object>,swim.api.lane.JoinMapLane<L,K,V>,swim.api.lane.Lane,swim.observable.Observable<Object>,swim.observable.ObservableMap<K,V>,swim.util.Log
public class JoinMapLaneView<L,K,V> extends LaneView implements swim.api.lane.JoinMapLane<L,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 JoinMapLaneModellaneBindingprotected swim.structure.Form<L>linkFormprotected swim.structure.Form<V>valueForm
-
Constructor Summary
Constructors Constructor Description JoinMapLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<L> linkForm, 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)JoinMapLaneModelcreateLaneBinding()JoinMapLaneView<L,K,V>decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)JoinMapLaneView<L,K,V>didClear(swim.observable.function.DidClear didClear)JoinMapLaneView<L,K,V>didCommand(swim.api.lane.function.DidCommand didCommand)JoinMapLaneView<L,K,V>didDownlink(swim.api.lane.function.DidDownlinkMap<L> didDownlink)JoinMapLaneView<L,K,V>didEnter(swim.api.lane.function.DidEnter didEnter)JoinMapLaneView<L,K,V>didLeave(swim.api.lane.function.DidLeave didLeave)JoinMapLaneView<L,K,V>didRemove(swim.observable.function.DidRemoveKey<K,V> didRemove)JoinMapLaneView<L,K,V>didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)JoinMapLaneView<L,K,V>didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)JoinMapLaneView<L,K,V>didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)JoinMapLaneView<L,K,V>didUplink(swim.api.lane.function.DidUplink didUplink)protected booleandispatchDidClear(swim.api.Link link, boolean preemptive)protected booleandispatchDidDownlink(L key, swim.api.downlink.MapDownlink<?,?> downlink, boolean preemptive)protected booleandispatchDidRemove(swim.api.Link link, K key, V oldValue, boolean preemptive)protected booleandispatchDidUpdate(swim.api.Link link, K key, V newValue, V oldValue, boolean preemptive)protected booleandispatchWillClear(swim.api.Link link, boolean preemptive)protected Map.Entry<Boolean,swim.api.downlink.MapDownlink<?,?>>dispatchWillDownlink(L key, swim.api.downlink.MapDownlink<?,?> downlink, boolean preemptive)protected booleandispatchWillRemove(swim.api.Link link, K key, boolean preemptive)protected Map.Entry<Boolean,V>dispatchWillUpdate(swim.api.Link link, K key, V newValue, boolean preemptive)JoinMapLaneView<L,K,V>doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)swim.api.downlink.MapDownlink<K,V>downlink(L key)Iterator<Map.Entry<L,swim.api.downlink.MapDownlink<?,?>>>downlinkIterator()Set<Map.Entry<K,V>>entrySet()Vget(Object key)swim.api.downlink.MapDownlink<?,?>getDownlink(Object key)JoinMapLaneModelgetLaneBinding()booleanisEmpty()booleanisResident()JoinMapLaneView<L,K,V>isResident(boolean isResident)booleanisSigned()JoinMapLaneView<L,K,V>isSigned(boolean isSigned)booleanisTransient()JoinMapLaneView<L,K,V>isTransient(boolean isTransient)Iterator<Map.Entry<K,V>>iterator()<K2> JoinMapLaneView<L,K2,V>keyClass(Class<K2> keyClass)swim.structure.Form<K>keyForm()<K2> JoinMapLaneView<L,K2,V>keyForm(swim.structure.Form<K2> keyForm)Iterator<K>keyIterator()Set<K>keySet()voidlaneDidClear()voidlaneDidDownlink(K key, swim.api.downlink.MapDownlink<K,V> downlink)voidlaneDidRemove(K key, V oldValue)voidlaneDidUpdate(K key, V newValue, V oldValue)voidlaneWillClear()swim.api.downlink.MapDownlink<K,V>laneWillDownlink(L key, swim.api.downlink.MapDownlink<K,V> downlink)voidlaneWillRemove(K key)VlaneWillUpdate(K key, V newValue)<L2> JoinMapLaneView<L2,K,V>linkClass(Class<L2> linkClass)swim.structure.Form<L>linkForm()<L2> JoinMapLaneView<L2,K,V>linkForm(swim.structure.Form<L2> linkForm)JoinMapLaneView<L,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)voidsetLinkForm(swim.structure.Form<L> linkForm)voidsetValueForm(swim.structure.Form<V> valueForm)intsize()protected ObjecttypesafeObservers(Object observers)JoinMapLaneView<L,K,V>unobserve(Object observer)<V2> JoinMapLaneView<L,K,V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> JoinMapLaneView<L,K,V2>valueForm(swim.structure.Form<V2> valueForm)Iterator<V>valueIterator()Collection<V>values()JoinMapLaneView<L,K,V>willClear(swim.observable.function.WillClear willClear)JoinMapLaneView<L,K,V>willCommand(swim.api.lane.function.WillCommand willCommand)JoinMapLaneView<L,K,V>willDownlink(swim.api.lane.function.WillDownlinkMap<L> willDownlink)JoinMapLaneView<L,K,V>willEnter(swim.api.lane.function.WillEnter willEnter)JoinMapLaneView<L,K,V>willLeave(swim.api.lane.function.WillLeave willLeave)JoinMapLaneView<L,K,V>willRemove(swim.observable.function.WillRemoveKey<K> willRemove)JoinMapLaneView<L,K,V>willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)JoinMapLaneView<L,K,V>willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)JoinMapLaneView<L,K,V>willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)JoinMapLaneView<L,K,V>willUplink(swim.api.lane.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.lane.LaneView
debug, dispatchDecodeRequest, dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidRequest, dispatchDidRespond, dispatchDidUplink, dispatchDoRespond, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillRequest, dispatchWillRespond, dispatchWillUplink, error, hostUri, info, laneDecodeRequest, laneDidCommand, laneDidEnter, laneDidFail, laneDidLeave, laneDidRequest, laneDidRespond, laneDidUplink, laneDoRespond, laneUri, laneWillCommand, laneWillEnter, laneWillLeave, laneWillRequest, laneWillRespond, laneWillUplink, nodeUri, trace, unwrapLane, warn
-
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 swim.api.lane.Lane
debug, error, hostUri, info, laneUri, nodeUri, trace, warn
-
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
-
linkForm
protected swim.structure.Form<L> linkForm
-
keyForm
protected swim.structure.Form<K> keyForm
-
valueForm
protected swim.structure.Form<V> valueForm
-
flags
protected int flags
-
laneBinding
protected JoinMapLaneModel laneBinding
-
-
Method Detail
-
agentContext
public swim.api.agent.AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
getLaneBinding
public JoinMapLaneModel getLaneBinding()
- Specified by:
getLaneBindingin classLaneView
-
createLaneBinding
public JoinMapLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
linkForm
public final swim.structure.Form<L> linkForm()
-
linkForm
public <L2> JoinMapLaneView<L2,K,V> linkForm(swim.structure.Form<L2> linkForm)
-
linkClass
public <L2> JoinMapLaneView<L2,K,V> linkClass(Class<L2> linkClass)
-
setLinkForm
public void setLinkForm(swim.structure.Form<L> linkForm)
-
keyForm
public final swim.structure.Form<K> keyForm()
-
keyForm
public <K2> JoinMapLaneView<L,K2,V> keyForm(swim.structure.Form<K2> keyForm)
-
keyClass
public <K2> JoinMapLaneView<L,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> JoinMapLaneView<L,K,V2> valueForm(swim.structure.Form<V2> valueForm)
-
valueClass
public <V2> JoinMapLaneView<L,K,V2> valueClass(Class<V2> valueClass)
-
setValueForm
public void setValueForm(swim.structure.Form<V> valueForm)
-
isResident
public final boolean isResident()
-
isResident
public JoinMapLaneView<L,K,V> isResident(boolean isResident)
-
isTransient
public final boolean isTransient()
-
isTransient
public JoinMapLaneView<L,K,V> isTransient(boolean isTransient)
-
isSigned
public final boolean isSigned()
- Specified by:
isSignedin interfaceswim.api.lane.Lane
-
isSigned
public JoinMapLaneView<L,K,V> isSigned(boolean isSigned)
-
close
public void close()
-
observe
public JoinMapLaneView<L,K,V> observe(Object observer)
- Specified by:
observein interfaceswim.api.http.HttpLane<L>- Specified by:
observein interfaceswim.api.lane.JoinMapLane<L,K,V>- Specified by:
observein interfaceswim.api.lane.Lane- Specified by:
observein interfaceswim.observable.Observable<L>- Specified by:
observein interfaceswim.observable.ObservableMap<L,K>- Overrides:
observein classLaneView
-
unobserve
public JoinMapLaneView<L,K,V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.http.HttpLane<L>- Specified by:
unobservein interfaceswim.api.lane.JoinMapLane<L,K,V>- Specified by:
unobservein interfaceswim.api.lane.Lane- Specified by:
unobservein interfaceswim.observable.Observable<L>- Specified by:
unobservein interfaceswim.observable.ObservableMap<L,K>- Overrides:
unobservein classLaneView
-
willDownlink
public JoinMapLaneView<L,K,V> willDownlink(swim.api.lane.function.WillDownlinkMap<L> willDownlink)
-
didDownlink
public JoinMapLaneView<L,K,V> didDownlink(swim.api.lane.function.DidDownlinkMap<L> didDownlink)
-
willUpdate
public JoinMapLaneView<L,K,V> willUpdate(swim.observable.function.WillUpdateKey<K,V> willUpdate)
-
didUpdate
public JoinMapLaneView<L,K,V> didUpdate(swim.observable.function.DidUpdateKey<K,V> didUpdate)
-
willRemove
public JoinMapLaneView<L,K,V> willRemove(swim.observable.function.WillRemoveKey<K> willRemove)
-
didRemove
public JoinMapLaneView<L,K,V> didRemove(swim.observable.function.DidRemoveKey<K,V> didRemove)
-
willClear
public JoinMapLaneView<L,K,V> willClear(swim.observable.function.WillClear willClear)
-
didClear
public JoinMapLaneView<L,K,V> didClear(swim.observable.function.DidClear didClear)
-
willCommand
public JoinMapLaneView<L,K,V> willCommand(swim.api.lane.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.JoinMapLane<L,K,V>- Specified by:
willCommandin interfaceswim.api.lane.Lane- Specified by:
willCommandin classLaneView
-
didCommand
public JoinMapLaneView<L,K,V> didCommand(swim.api.lane.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.JoinMapLane<L,K,V>- Specified by:
didCommandin interfaceswim.api.lane.Lane- Specified by:
didCommandin classLaneView
-
willUplink
public JoinMapLaneView<L,K,V> willUplink(swim.api.lane.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.JoinMapLane<L,K,V>- Specified by:
willUplinkin interfaceswim.api.lane.Lane- Specified by:
willUplinkin classLaneView
-
didUplink
public JoinMapLaneView<L,K,V> didUplink(swim.api.lane.function.DidUplink didUplink)
-
willEnter
public JoinMapLaneView<L,K,V> willEnter(swim.api.lane.function.WillEnter willEnter)
-
didEnter
public JoinMapLaneView<L,K,V> didEnter(swim.api.lane.function.DidEnter didEnter)
-
willLeave
public JoinMapLaneView<L,K,V> willLeave(swim.api.lane.function.WillLeave willLeave)
-
didLeave
public JoinMapLaneView<L,K,V> didLeave(swim.api.lane.function.DidLeave didLeave)
-
decodeRequest
public JoinMapLaneView<L,K,V> decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
-
willRequest
public JoinMapLaneView<L,K,V> willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)
-
didRequest
public JoinMapLaneView<L,K,V> didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)
-
doRespond
public JoinMapLaneView<L,K,V> doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)
-
willRespond
public JoinMapLaneView<L,K,V> willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)
-
didRespond
public JoinMapLaneView<L,K,V> didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)
-
dispatchWillUpdate
protected Map.Entry<Boolean,V> dispatchWillUpdate(swim.api.Link link, K key, V newValue, boolean preemptive)
-
dispatchDidUpdate
protected boolean dispatchDidUpdate(swim.api.Link link, K key, V newValue, V oldValue, boolean preemptive)
-
dispatchWillRemove
protected boolean dispatchWillRemove(swim.api.Link link, K key, boolean preemptive)
-
dispatchDidRemove
protected boolean dispatchDidRemove(swim.api.Link link, K key, V oldValue, boolean preemptive)
-
dispatchWillClear
protected boolean dispatchWillClear(swim.api.Link link, boolean preemptive)
-
dispatchDidClear
protected boolean dispatchDidClear(swim.api.Link link, boolean preemptive)
-
dispatchWillDownlink
protected Map.Entry<Boolean,swim.api.downlink.MapDownlink<?,?>> dispatchWillDownlink(L key, swim.api.downlink.MapDownlink<?,?> downlink, boolean preemptive)
-
dispatchDidDownlink
protected boolean dispatchDidDownlink(L key, swim.api.downlink.MapDownlink<?,?> downlink, boolean preemptive)
-
laneWillDownlink
public swim.api.downlink.MapDownlink<K,V> laneWillDownlink(L key, swim.api.downlink.MapDownlink<K,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<L,K>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<L,K>
-
getDownlink
public swim.api.downlink.MapDownlink<?,?> getDownlink(Object key)
-
-