Module swim.runtime

Class DemandMapLaneView<K,​V>

  • All Implemented Interfaces:
    swim.api.downlink.DownlinkFactory, swim.api.Lane, swim.api.lane.DemandMapLane<K,​V>, swim.api.ref.SwimRef, swim.api.warp.WarpLane, swim.observable.Observable<Object>, CellContext, TierBinding, swim.util.Log

    public class DemandMapLaneView<K,​V>
    extends WarpLaneView
    implements swim.api.lane.DemandMapLane<K,​V>
    • Field Detail

      • agentContext

        protected final swim.api.agent.AgentContext agentContext
      • keyForm

        protected swim.structure.Form<K> keyForm
      • valueForm

        protected swim.structure.Form<V> valueForm
    • Constructor Detail

      • DemandMapLaneView

        public DemandMapLaneView​(swim.api.agent.AgentContext agentContext,
                                 swim.structure.Form<K> keyForm,
                                 swim.structure.Form<V> valueForm,
                                 Object observers)
      • DemandMapLaneView

        public DemandMapLaneView​(swim.api.agent.AgentContext agentContext,
                                 swim.structure.Form<K> keyForm,
                                 swim.structure.Form<V> valueForm)
    • Method Detail

      • agentContext

        public swim.api.agent.AgentContext agentContext()
        Specified by:
        agentContext in class LaneView
      • keyForm

        public final swim.structure.Form<K> keyForm()
        Specified by:
        keyForm in interface swim.api.lane.DemandMapLane<K,​V>
      • keyForm

        public <K2> DemandMapLaneView<K2,​V> keyForm​(swim.structure.Form<K2> keyForm)
        Specified by:
        keyForm in interface swim.api.lane.DemandMapLane<K,​V>
      • keyClass

        public <K2> DemandMapLaneView<K2,​V> keyClass​(Class<K2> keyClass)
        Specified by:
        keyClass in interface swim.api.lane.DemandMapLane<K,​V>
      • setKeyForm

        public void setKeyForm​(swim.structure.Form<K> keyForm)
      • valueForm

        public final swim.structure.Form<V> valueForm()
        Specified by:
        valueForm in interface swim.api.lane.DemandMapLane<K,​V>
      • valueForm

        public <V2> DemandMapLaneView<K,​V2> valueForm​(swim.structure.Form<V2> valueForm)
        Specified by:
        valueForm in interface swim.api.lane.DemandMapLane<K,​V>
      • valueClass

        public <V2> DemandMapLaneView<K,​V2> valueClass​(Class<V2> valueClass)
        Specified by:
        valueClass in interface swim.api.lane.DemandMapLane<K,​V>
      • setValueForm

        public void setValueForm​(swim.structure.Form<V> valueForm)
      • typesafeObservers

        protected Object typesafeObservers​(Object observers)
      • close

        public void close()
        Specified by:
        close in interface swim.api.Lane
        Specified by:
        close in interface swim.api.ref.SwimRef
        Specified by:
        close in interface TierBinding
        Specified by:
        close in class LaneView
      • observe

        public DemandMapLaneView<K,​V> observe​(Object observer)
        Specified by:
        observe in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        observe in interface swim.api.Lane
        Specified by:
        observe in interface swim.observable.Observable<K>
        Specified by:
        observe in interface swim.api.warp.WarpLane
        Overrides:
        observe in class WarpLaneView
      • unobserve

        public DemandMapLaneView<K,​V> unobserve​(Object observer)
        Specified by:
        unobserve in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        unobserve in interface swim.api.Lane
        Specified by:
        unobserve in interface swim.observable.Observable<K>
        Specified by:
        unobserve in interface swim.api.warp.WarpLane
        Overrides:
        unobserve in class WarpLaneView
      • onCue

        public DemandMapLaneView<K,​V> onCue​(swim.api.lane.function.OnCueKey<K,​V> onCue)
        Specified by:
        onCue in interface swim.api.lane.DemandMapLane<K,​V>
      • onSync

        public DemandMapLaneView<K,​V> onSync​(swim.api.lane.function.OnSyncKeys<K> onSync)
        Specified by:
        onSync in interface swim.api.lane.DemandMapLane<K,​V>
      • willCommand

        public DemandMapLaneView<K,​V> willCommand​(swim.api.warp.function.WillCommand willCommand)
        Specified by:
        willCommand in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        willCommand in interface swim.api.warp.WarpLane
        Specified by:
        willCommand in class WarpLaneView
      • didCommand

        public DemandMapLaneView<K,​V> didCommand​(swim.api.warp.function.DidCommand didCommand)
        Specified by:
        didCommand in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didCommand in interface swim.api.warp.WarpLane
        Specified by:
        didCommand in class WarpLaneView
      • willUplink

        public DemandMapLaneView<K,​V> willUplink​(swim.api.warp.function.WillUplink willUplink)
        Specified by:
        willUplink in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        willUplink in interface swim.api.warp.WarpLane
        Specified by:
        willUplink in class WarpLaneView
      • didUplink

        public DemandMapLaneView<K,​V> didUplink​(swim.api.warp.function.DidUplink didUplink)
        Specified by:
        didUplink in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didUplink in interface swim.api.warp.WarpLane
        Specified by:
        didUplink in class WarpLaneView
      • willEnter

        public DemandMapLaneView<K,​V> willEnter​(swim.api.warp.function.WillEnter willEnter)
        Specified by:
        willEnter in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        willEnter in interface swim.api.warp.WarpLane
        Specified by:
        willEnter in class WarpLaneView
      • didEnter

        public DemandMapLaneView<K,​V> didEnter​(swim.api.warp.function.DidEnter didEnter)
        Specified by:
        didEnter in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didEnter in interface swim.api.warp.WarpLane
        Specified by:
        didEnter in class WarpLaneView
      • willLeave

        public DemandMapLaneView<K,​V> willLeave​(swim.api.warp.function.WillLeave willLeave)
        Specified by:
        willLeave in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        willLeave in interface swim.api.warp.WarpLane
        Specified by:
        willLeave in class WarpLaneView
      • didLeave

        public DemandMapLaneView<K,​V> didLeave​(swim.api.warp.function.DidLeave didLeave)
        Specified by:
        didLeave in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didLeave in interface swim.api.warp.WarpLane
        Specified by:
        didLeave in class WarpLaneView
      • dispatchOnCue

        public V dispatchOnCue​(K key,
                               swim.api.warp.WarpUplink uplink)
      • dispatchOnSync

        public Iterator<K> dispatchOnSync​(swim.api.warp.WarpUplink uplink)
      • cue

        public void cue​(K key)
        Specified by:
        cue in interface swim.api.lane.DemandMapLane<K,​V>
      • remove

        public void remove​(K key)
        Specified by:
        remove in interface swim.api.lane.DemandMapLane<K,​V>