Module swim.runtime

Class EventDownlinkView<V>

  • All Implemented Interfaces:
    swim.api.Downlink, swim.api.downlink.EventDownlink<V>, swim.api.Link, swim.api.warp.WarpDownlink, swim.api.warp.WarpLink, swim.observable.Observable<Object>, swim.util.Log

    public class EventDownlinkView<V>
    extends WarpDownlinkView
    implements swim.api.downlink.EventDownlink<V>
    • Field Detail

      • valueForm

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

      • EventDownlinkView

        public EventDownlinkView​(CellContext cellContext,
                                 swim.concurrent.Stage stage,
                                 swim.uri.Uri meshUri,
                                 swim.uri.Uri hostUri,
                                 swim.uri.Uri nodeUri,
                                 swim.uri.Uri laneUri,
                                 float prio,
                                 float rate,
                                 swim.structure.Value body,
                                 int flags,
                                 swim.structure.Form<V> valueForm,
                                 Object observers)
      • EventDownlinkView

        public EventDownlinkView​(CellContext cellContext,
                                 swim.concurrent.Stage stage,
                                 swim.uri.Uri meshUri,
                                 swim.uri.Uri hostUri,
                                 swim.uri.Uri nodeUri,
                                 swim.uri.Uri laneUri,
                                 float prio,
                                 float rate,
                                 swim.structure.Value body,
                                 swim.structure.Form<V> valueForm)
    • Method Detail

      • hostUri

        public EventDownlinkView<V> hostUri​(swim.uri.Uri hostUri)
        Specified by:
        hostUri in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        hostUri in interface swim.api.warp.WarpDownlink
        Specified by:
        hostUri in class WarpDownlinkView
      • hostUri

        public EventDownlinkView<V> hostUri​(String hostUri)
        Specified by:
        hostUri in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        hostUri in interface swim.api.warp.WarpDownlink
        Specified by:
        hostUri in class WarpDownlinkView
      • nodeUri

        public EventDownlinkView<V> nodeUri​(swim.uri.Uri nodeUri)
        Specified by:
        nodeUri in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        nodeUri in interface swim.api.warp.WarpDownlink
        Specified by:
        nodeUri in class WarpDownlinkView
      • nodeUri

        public EventDownlinkView<V> nodeUri​(String nodeUri)
        Specified by:
        nodeUri in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        nodeUri in interface swim.api.warp.WarpDownlink
        Specified by:
        nodeUri in class WarpDownlinkView
      • laneUri

        public EventDownlinkView<V> laneUri​(swim.uri.Uri laneUri)
        Specified by:
        laneUri in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        laneUri in interface swim.api.warp.WarpDownlink
        Specified by:
        laneUri in class WarpDownlinkView
      • laneUri

        public EventDownlinkView<V> laneUri​(String laneUri)
        Specified by:
        laneUri in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        laneUri in interface swim.api.warp.WarpDownlink
        Specified by:
        laneUri in class WarpDownlinkView
      • prio

        public EventDownlinkView<V> prio​(float prio)
        Specified by:
        prio in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        prio in interface swim.api.warp.WarpDownlink
        Specified by:
        prio in class WarpDownlinkView
      • rate

        public EventDownlinkView<V> rate​(float rate)
        Specified by:
        rate in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        rate in interface swim.api.warp.WarpDownlink
        Specified by:
        rate in class WarpDownlinkView
      • body

        public EventDownlinkView<V> body​(swim.structure.Value body)
        Specified by:
        body in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        body in interface swim.api.warp.WarpDownlink
        Specified by:
        body in class WarpDownlinkView
      • keepLinked

        public EventDownlinkView<V> keepLinked​(boolean keepLinked)
        Specified by:
        keepLinked in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        keepLinked in interface swim.api.warp.WarpDownlink
        Specified by:
        keepLinked in class WarpDownlinkView
      • keepSynced

        public EventDownlinkView<V> keepSynced​(boolean keepSynced)
        Specified by:
        keepSynced in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        keepSynced in interface swim.api.warp.WarpDownlink
        Specified by:
        keepSynced in class WarpDownlinkView
      • valueForm

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

        public <V2> EventDownlinkView<V2> valueForm​(swim.structure.Form<V2> valueForm)
        Specified by:
        valueForm in interface swim.api.downlink.EventDownlink<V>
      • valueClass

        public <V2> EventDownlinkView<V2> valueClass​(Class<V2> valueClass)
        Specified by:
        valueClass in interface swim.api.downlink.EventDownlink<V>
      • typesafeObservers

        protected Object typesafeObservers​(Object observers)
      • observe

        public EventDownlinkView<V> observe​(Object observer)
        Specified by:
        observe in interface swim.api.Downlink
        Specified by:
        observe in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        observe in interface swim.api.Link
        Specified by:
        observe in interface swim.observable.Observable<V>
        Specified by:
        observe in interface swim.api.warp.WarpDownlink
        Overrides:
        observe in class WarpDownlinkView
      • unobserve

        public EventDownlinkView<V> unobserve​(Object observer)
        Specified by:
        unobserve in interface swim.api.Downlink
        Specified by:
        unobserve in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        unobserve in interface swim.api.Link
        Specified by:
        unobserve in interface swim.observable.Observable<V>
        Specified by:
        unobserve in interface swim.api.warp.WarpDownlink
        Overrides:
        unobserve in class WarpDownlinkView
      • onEvent

        public EventDownlinkView<V> onEvent​(swim.api.warp.function.OnEvent<V> onEvent)
        Specified by:
        onEvent in interface swim.api.downlink.EventDownlink<V>
      • willReceive

        public EventDownlinkView<V> willReceive​(swim.api.warp.function.WillReceive willReceive)
        Specified by:
        willReceive in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        willReceive in interface swim.api.warp.WarpDownlink
        Specified by:
        willReceive in class WarpDownlinkView
      • didReceive

        public EventDownlinkView<V> didReceive​(swim.api.warp.function.DidReceive didReceive)
        Specified by:
        didReceive in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didReceive in interface swim.api.warp.WarpDownlink
        Specified by:
        didReceive in class WarpDownlinkView
      • willCommand

        public EventDownlinkView<V> willCommand​(swim.api.warp.function.WillCommand willCommand)
        Specified by:
        willCommand in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        willCommand in interface swim.api.warp.WarpDownlink
        Specified by:
        willCommand in class WarpDownlinkView
      • willLink

        public EventDownlinkView<V> willLink​(swim.api.warp.function.WillLink willLink)
        Specified by:
        willLink in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        willLink in interface swim.api.warp.WarpDownlink
        Specified by:
        willLink in class WarpDownlinkView
      • didLink

        public EventDownlinkView<V> didLink​(swim.api.warp.function.DidLink didLink)
        Specified by:
        didLink in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didLink in interface swim.api.warp.WarpDownlink
        Specified by:
        didLink in class WarpDownlinkView
      • willSync

        public EventDownlinkView<V> willSync​(swim.api.warp.function.WillSync willSync)
        Specified by:
        willSync in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        willSync in interface swim.api.warp.WarpDownlink
        Specified by:
        willSync in class WarpDownlinkView
      • didSync

        public EventDownlinkView<V> didSync​(swim.api.warp.function.DidSync didSync)
        Specified by:
        didSync in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didSync in interface swim.api.warp.WarpDownlink
        Specified by:
        didSync in class WarpDownlinkView
      • willUnlink

        public EventDownlinkView<V> willUnlink​(swim.api.warp.function.WillUnlink willUnlink)
        Specified by:
        willUnlink in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        willUnlink in interface swim.api.warp.WarpDownlink
        Specified by:
        willUnlink in class WarpDownlinkView
      • didUnlink

        public EventDownlinkView<V> didUnlink​(swim.api.warp.function.DidUnlink didUnlink)
        Specified by:
        didUnlink in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didUnlink in interface swim.api.warp.WarpDownlink
        Specified by:
        didUnlink in class WarpDownlinkView
      • didConnect

        public EventDownlinkView<V> didConnect​(swim.api.function.DidConnect didConnect)
        Specified by:
        didConnect in interface swim.api.Downlink
        Specified by:
        didConnect in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didConnect in interface swim.api.warp.WarpDownlink
        Specified by:
        didConnect in class WarpDownlinkView
      • didDisconnect

        public EventDownlinkView<V> didDisconnect​(swim.api.function.DidDisconnect didDisconnect)
        Specified by:
        didDisconnect in interface swim.api.Downlink
        Specified by:
        didDisconnect in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didDisconnect in interface swim.api.warp.WarpDownlink
        Specified by:
        didDisconnect in class WarpDownlinkView
      • didClose

        public EventDownlinkView<V> didClose​(swim.api.function.DidClose didClose)
        Specified by:
        didClose in interface swim.api.Downlink
        Specified by:
        didClose in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didClose in interface swim.api.warp.WarpDownlink
        Specified by:
        didClose in class WarpDownlinkView
      • didFail

        public EventDownlinkView<V> didFail​(swim.api.function.DidFail didFail)
        Specified by:
        didFail in interface swim.api.Downlink
        Specified by:
        didFail in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        didFail in interface swim.api.warp.WarpDownlink
        Specified by:
        didFail in class WarpDownlinkView
      • dispatchOnEvent

        public boolean dispatchOnEvent​(V value,
                                       boolean preemptive)
      • downlinkOnEvent

        public void downlinkOnEvent​(V value)
      • open

        public EventDownlinkView<V> open()
        Specified by:
        open in interface swim.api.Downlink
        Specified by:
        open in interface swim.api.downlink.EventDownlink<V>
        Specified by:
        open in interface swim.api.warp.WarpDownlink
        Specified by:
        open in class WarpDownlinkView
      • close

        public void close()
        Specified by:
        close in interface swim.api.Link
        Overrides:
        close in class DownlinkView