Module swim.runtime

Class CommandLaneView<V>

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

    public class CommandLaneView<V>
    extends LaneView
    implements swim.api.lane.CommandLane<V>
    • Field Detail

      • agentContext

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

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

      • CommandLaneView

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

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

      • agentContext

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

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

        public <V2> CommandLaneView<V2> valueForm​(swim.structure.Form<V2> valueForm)
        Specified by:
        valueForm in interface swim.api.lane.CommandLane<V>
      • valueClass

        public <V2> CommandLaneView<V2> valueClass​(Class<V2> valueClass)
        Specified by:
        valueClass in interface swim.api.lane.CommandLane<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 CommandLaneView<V> isSigned​(boolean isSigned)
        Specified by:
        isSigned in interface swim.api.lane.CommandLane<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 CommandLaneView<V> observe​(Object observer)
        Specified by:
        observe in interface swim.api.lane.CommandLane<V>
        Specified by:
        observe in interface swim.api.http.HttpLane<V>
        Specified by:
        observe in interface swim.api.lane.Lane
        Specified by:
        observe in interface swim.observable.Observable<V>
        Overrides:
        observe in class LaneView
      • unobserve

        public CommandLaneView<V> unobserve​(Object observer)
        Specified by:
        unobserve in interface swim.api.lane.CommandLane<V>
        Specified by:
        unobserve in interface swim.api.http.HttpLane<V>
        Specified by:
        unobserve in interface swim.api.lane.Lane
        Specified by:
        unobserve in interface swim.observable.Observable<V>
        Overrides:
        unobserve in class LaneView
      • onCommand

        public CommandLaneView<V> onCommand​(swim.api.lane.function.OnCommand<V> onCommand)
        Specified by:
        onCommand in interface swim.api.lane.CommandLane<V>
      • willCommand

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

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

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

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

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

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

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

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

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

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

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

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

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

        public CommandLaneView<V> didRespond​(swim.api.http.function.DidRespondHttp<?> didRespond)
        Specified by:
        didRespond in interface swim.api.lane.CommandLane<V>
        Specified by:
        didRespond in interface swim.api.http.HttpLane<V>
        Specified by:
        didRespond in interface swim.api.lane.Lane
        Specified by:
        didRespond in class LaneView
      • laneOnCommand

        public void laneOnCommand​(V value)
      • dispatchOnCommand

        protected boolean dispatchOnCommand​(swim.api.Link link,
                                            V value,
                                            boolean preemptive)