Module swim.runtime

Class DemandMapLaneView<K,​V>

  • All Implemented Interfaces:
    swim.api.http.HttpLane<Object>, swim.api.lane.DemandMapLane<K,​V>, swim.api.lane.Lane, swim.observable.Observable<Object>, swim.util.Log

    public class DemandMapLaneView<K,​V>
    extends LaneView
    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)
      • isSigned

        public final boolean isSigned()
        Specified by:
        isSigned in interface swim.api.lane.Lane
      • isSigned

        public DemandMapLaneView<K,​V> isSigned​(boolean isSigned)
        Specified by:
        isSigned in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        isSigned in interface swim.api.lane.Lane
      • close

        public void close()
        Specified by:
        close in interface swim.api.lane.Lane
        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.http.HttpLane<K>
        Specified by:
        observe in interface swim.api.lane.Lane
        Specified by:
        observe in interface swim.observable.Observable<K>
        Overrides:
        observe in class LaneView
      • 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.http.HttpLane<K>
        Specified by:
        unobserve in interface swim.api.lane.Lane
        Specified by:
        unobserve in interface swim.observable.Observable<K>
        Overrides:
        unobserve in class LaneView
      • 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.OnSyncMap<K,​V> onSync)
        Specified by:
        onSync in interface swim.api.lane.DemandMapLane<K,​V>
      • willCommand

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

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

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

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

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

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

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

        public DemandMapLaneView<K,​V> didLeave​(swim.api.lane.function.DidLeave didLeave)
        Specified by:
        didLeave in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didLeave in interface swim.api.lane.Lane
        Specified by:
        didLeave in class LaneView
      • decodeRequest

        public DemandMapLaneView<K,​V> decodeRequest​(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
        Specified by:
        decodeRequest in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        decodeRequest in interface swim.api.http.HttpLane<K>
        Specified by:
        decodeRequest in interface swim.api.lane.Lane
        Specified by:
        decodeRequest in class LaneView
      • willRequest

        public DemandMapLaneView<K,​V> willRequest​(swim.api.http.function.WillRequestHttp<?> willRequest)
        Specified by:
        willRequest in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        willRequest in interface swim.api.http.HttpLane<K>
        Specified by:
        willRequest in interface swim.api.lane.Lane
        Specified by:
        willRequest in class LaneView
      • didRequest

        public DemandMapLaneView<K,​V> didRequest​(swim.api.http.function.DidRequestHttp<Object> didRequest)
        Specified by:
        didRequest in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didRequest in interface swim.api.http.HttpLane<K>
        Specified by:
        didRequest in interface swim.api.lane.Lane
        Specified by:
        didRequest in class LaneView
      • doRespond

        public DemandMapLaneView<K,​V> doRespond​(swim.api.http.function.DoRespondHttp<Object> doRespond)
        Specified by:
        doRespond in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        doRespond in interface swim.api.http.HttpLane<K>
        Specified by:
        doRespond in interface swim.api.lane.Lane
        Specified by:
        doRespond in class LaneView
      • willRespond

        public DemandMapLaneView<K,​V> willRespond​(swim.api.http.function.WillRespondHttp<?> willRespond)
        Specified by:
        willRespond in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        willRespond in interface swim.api.http.HttpLane<K>
        Specified by:
        willRespond in interface swim.api.lane.Lane
        Specified by:
        willRespond in class LaneView
      • didRespond

        public DemandMapLaneView<K,​V> didRespond​(swim.api.http.function.DidRespondHttp<?> didRespond)
        Specified by:
        didRespond in interface swim.api.lane.DemandMapLane<K,​V>
        Specified by:
        didRespond in interface swim.api.http.HttpLane<K>
        Specified by:
        didRespond in interface swim.api.lane.Lane
        Specified by:
        didRespond in class LaneView
      • dispatchOnCue

        protected V dispatchOnCue​(K key,
                                  swim.api.uplink.Uplink uplink)
      • dispatchOnSync

        protected Iterator<Map.Entry<K,​V>> dispatchOnSync​(swim.api.uplink.Uplink 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>