Module swim.runtime

Class DownlinkView

    • Field Detail

      • stage

        protected final swim.concurrent.Stage stage
      • meshUri

        protected final swim.uri.Uri meshUri
      • hostUri

        protected final swim.uri.Uri hostUri
      • nodeUri

        protected final swim.uri.Uri nodeUri
      • laneUri

        protected final swim.uri.Uri laneUri
      • prio

        protected final float prio
      • rate

        protected final float rate
      • body

        protected final swim.structure.Value body
      • flags

        protected volatile int flags
      • observers

        protected volatile Object observers
    • Constructor Detail

      • DownlinkView

        public DownlinkView​(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,
                            Object observers)
    • Method Detail

      • downlinkModel

        public abstract DownlinkModel<?> downlinkModel()
      • stage

        public final swim.concurrent.Stage stage()
      • meshUri

        public final swim.uri.Uri meshUri()
      • hostUri

        public final swim.uri.Uri hostUri()
        Specified by:
        hostUri in interface swim.api.downlink.Downlink
        Specified by:
        hostUri in interface swim.api.Link
      • hostUri

        public abstract DownlinkView hostUri​(swim.uri.Uri hostUri)
        Specified by:
        hostUri in interface swim.api.downlink.Downlink
      • hostUri

        public abstract DownlinkView hostUri​(String hostUri)
        Specified by:
        hostUri in interface swim.api.downlink.Downlink
      • nodeUri

        public final swim.uri.Uri nodeUri()
        Specified by:
        nodeUri in interface swim.api.downlink.Downlink
        Specified by:
        nodeUri in interface swim.api.Link
      • nodeUri

        public abstract DownlinkView nodeUri​(swim.uri.Uri nodeUri)
        Specified by:
        nodeUri in interface swim.api.downlink.Downlink
      • nodeUri

        public abstract DownlinkView nodeUri​(String nodeUri)
        Specified by:
        nodeUri in interface swim.api.downlink.Downlink
      • laneUri

        public final swim.uri.Uri laneUri()
        Specified by:
        laneUri in interface swim.api.downlink.Downlink
        Specified by:
        laneUri in interface swim.api.Link
      • laneUri

        public abstract DownlinkView laneUri​(swim.uri.Uri laneUri)
        Specified by:
        laneUri in interface swim.api.downlink.Downlink
      • laneUri

        public abstract DownlinkView laneUri​(String laneUri)
        Specified by:
        laneUri in interface swim.api.downlink.Downlink
      • prio

        public final float prio()
        Specified by:
        prio in interface swim.api.downlink.Downlink
      • prio

        public abstract DownlinkView prio​(float prio)
        Specified by:
        prio in interface swim.api.downlink.Downlink
      • rate

        public final float rate()
        Specified by:
        rate in interface swim.api.downlink.Downlink
      • rate

        public abstract DownlinkView rate​(float rate)
        Specified by:
        rate in interface swim.api.downlink.Downlink
      • body

        public final swim.structure.Value body()
        Specified by:
        body in interface swim.api.downlink.Downlink
      • body

        public abstract DownlinkView body​(swim.structure.Value body)
        Specified by:
        body in interface swim.api.downlink.Downlink
      • keepLinked

        public final boolean keepLinked()
        Specified by:
        keepLinked in interface swim.api.downlink.Downlink
      • keepLinked

        public abstract DownlinkView keepLinked​(boolean keepLinked)
        Specified by:
        keepLinked in interface swim.api.downlink.Downlink
      • keepSynced

        public final boolean keepSynced()
        Specified by:
        keepSynced in interface swim.api.downlink.Downlink
      • keepSynced

        public abstract DownlinkView keepSynced​(boolean keepSynced)
        Specified by:
        keepSynced in interface swim.api.downlink.Downlink
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface swim.api.downlink.Downlink
        Specified by:
        isConnected in interface swim.api.Link
      • isRemote

        public boolean isRemote()
        Specified by:
        isRemote in interface swim.api.downlink.Downlink
        Specified by:
        isRemote in interface swim.api.Link
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface swim.api.downlink.Downlink
        Specified by:
        isSecure in interface swim.api.Link
      • securityProtocol

        public String securityProtocol()
        Specified by:
        securityProtocol in interface swim.api.downlink.Downlink
        Specified by:
        securityProtocol in interface swim.api.Link
      • cipherSuite

        public String cipherSuite()
        Specified by:
        cipherSuite in interface swim.api.downlink.Downlink
        Specified by:
        cipherSuite in interface swim.api.Link
      • localAddress

        public InetSocketAddress localAddress()
        Specified by:
        localAddress in interface swim.api.downlink.Downlink
        Specified by:
        localAddress in interface swim.api.Link
      • localIdentity

        public swim.api.auth.Identity localIdentity()
        Specified by:
        localIdentity in interface swim.api.downlink.Downlink
        Specified by:
        localIdentity in interface swim.api.Link
      • localPrincipal

        public Principal localPrincipal()
        Specified by:
        localPrincipal in interface swim.api.downlink.Downlink
        Specified by:
        localPrincipal in interface swim.api.Link
      • localCertificates

        public Collection<Certificate> localCertificates()
        Specified by:
        localCertificates in interface swim.api.downlink.Downlink
        Specified by:
        localCertificates in interface swim.api.Link
      • remoteAddress

        public InetSocketAddress remoteAddress()
        Specified by:
        remoteAddress in interface swim.api.downlink.Downlink
        Specified by:
        remoteAddress in interface swim.api.Link
      • remoteIdentity

        public swim.api.auth.Identity remoteIdentity()
        Specified by:
        remoteIdentity in interface swim.api.downlink.Downlink
        Specified by:
        remoteIdentity in interface swim.api.Link
      • remotePrincipal

        public Principal remotePrincipal()
        Specified by:
        remotePrincipal in interface swim.api.downlink.Downlink
        Specified by:
        remotePrincipal in interface swim.api.Link
      • remoteCertificates

        public Collection<Certificate> remoteCertificates()
        Specified by:
        remoteCertificates in interface swim.api.downlink.Downlink
        Specified by:
        remoteCertificates in interface swim.api.Link
      • observe

        public DownlinkView observe​(Object newObserver)
        Specified by:
        observe in interface swim.api.downlink.Downlink
        Specified by:
        observe in interface swim.api.Link
        Specified by:
        observe in interface swim.observable.Observable<Object>
      • unobserve

        public DownlinkView unobserve​(Object oldObserver)
        Specified by:
        unobserve in interface swim.api.downlink.Downlink
        Specified by:
        unobserve in interface swim.api.Link
        Specified by:
        unobserve in interface swim.observable.Observable<Object>
      • willReceive

        public abstract DownlinkView willReceive​(swim.api.downlink.function.WillReceive willReceive)
        Specified by:
        willReceive in interface swim.api.downlink.Downlink
      • didReceive

        public abstract DownlinkView didReceive​(swim.api.downlink.function.DidReceive didReceive)
        Specified by:
        didReceive in interface swim.api.downlink.Downlink
      • willCommand

        public abstract DownlinkView willCommand​(swim.api.downlink.function.WillCommand willCommand)
        Specified by:
        willCommand in interface swim.api.downlink.Downlink
      • willLink

        public abstract DownlinkView willLink​(swim.api.downlink.function.WillLink willLink)
        Specified by:
        willLink in interface swim.api.downlink.Downlink
      • didLink

        public abstract DownlinkView didLink​(swim.api.downlink.function.DidLink didLink)
        Specified by:
        didLink in interface swim.api.downlink.Downlink
      • willSync

        public abstract DownlinkView willSync​(swim.api.downlink.function.WillSync willSync)
        Specified by:
        willSync in interface swim.api.downlink.Downlink
      • didSync

        public abstract DownlinkView didSync​(swim.api.downlink.function.DidSync didSync)
        Specified by:
        didSync in interface swim.api.downlink.Downlink
      • willUnlink

        public abstract DownlinkView willUnlink​(swim.api.downlink.function.WillUnlink willUnlink)
        Specified by:
        willUnlink in interface swim.api.downlink.Downlink
      • didUnlink

        public abstract DownlinkView didUnlink​(swim.api.downlink.function.DidUnlink didUnlink)
        Specified by:
        didUnlink in interface swim.api.downlink.Downlink
      • didConnect

        public abstract DownlinkView didConnect​(swim.api.function.DidConnect didConnect)
        Specified by:
        didConnect in interface swim.api.downlink.Downlink
      • didDisconnect

        public abstract DownlinkView didDisconnect​(swim.api.function.DidDisconnect didDisconnect)
        Specified by:
        didDisconnect in interface swim.api.downlink.Downlink
      • didClose

        public abstract DownlinkView didClose​(swim.api.function.DidClose didClose)
        Specified by:
        didClose in interface swim.api.downlink.Downlink
      • didFail

        public abstract DownlinkView didFail​(swim.api.function.DidFail didFail)
        Specified by:
        didFail in interface swim.api.downlink.Downlink
      • dispatchWillReceive

        protected boolean dispatchWillReceive​(swim.structure.Value body,
                                              boolean preemptive)
      • dispatchDidReceive

        protected boolean dispatchDidReceive​(swim.structure.Value body,
                                             boolean preemptive)
      • dispatchWillCommand

        protected boolean dispatchWillCommand​(swim.structure.Value body,
                                              boolean preemptive)
      • dispatchWillLink

        protected boolean dispatchWillLink​(boolean preemptive)
      • dispatchDidLink

        protected boolean dispatchDidLink​(boolean preemptive)
      • dispatchWillSync

        protected boolean dispatchWillSync​(boolean preemptive)
      • dispatchDidSync

        protected boolean dispatchDidSync​(boolean preemptive)
      • dispatchWillUnlink

        protected boolean dispatchWillUnlink​(boolean preemptive)
      • dispatchDidUnlink

        protected boolean dispatchDidUnlink​(boolean preemptive)
      • dispatchDidConnect

        protected boolean dispatchDidConnect​(boolean preemptive)
      • dispatchDidDisconnect

        protected boolean dispatchDidDisconnect​(boolean preemptive)
      • dispatchDidClose

        protected boolean dispatchDidClose​(boolean preemptive)
      • dispatchDidFail

        protected boolean dispatchDidFail​(Throwable cause,
                                          boolean preemptive)
      • downlinkWillReceive

        public void downlinkWillReceive​(swim.warp.EventMessage message)
      • downlinkDidReceive

        public void downlinkDidReceive​(swim.warp.EventMessage message)
      • downlinkWillCommand

        public void downlinkWillCommand​(swim.warp.CommandMessage message)
      • downlinkWillLink

        public void downlinkWillLink​(swim.warp.LinkRequest request)
      • downlinkDidLink

        public void downlinkDidLink​(swim.warp.LinkedResponse response)
      • downlinkWillSync

        public void downlinkWillSync​(swim.warp.SyncRequest request)
      • downlinkDidSync

        public void downlinkDidSync​(swim.warp.SyncedResponse response)
      • downlinkWillUnlink

        public void downlinkWillUnlink​(swim.warp.UnlinkRequest request)
      • downlinkDidUnlink

        public void downlinkDidUnlink​(swim.warp.UnlinkedResponse response)
      • downlinkDidConnect

        public void downlinkDidConnect()
      • downlinkDidDisconnect

        public void downlinkDidDisconnect()
      • downlinkDidClose

        public void downlinkDidClose()
      • downlinkDidFail

        public void downlinkDidFail​(Throwable error)
      • createDownlinkModel

        public abstract DownlinkModel<?> createDownlinkModel()
      • open

        public abstract DownlinkView open()
        Specified by:
        open in interface swim.api.downlink.Downlink
      • command

        public void command​(float prio,
                            swim.structure.Value body)
        Specified by:
        command in interface swim.api.downlink.Downlink
      • command

        public void command​(swim.structure.Value body)
        Specified by:
        command in interface swim.api.downlink.Downlink
      • close

        public void close()
        Specified by:
        close in interface swim.api.downlink.Downlink
        Specified by:
        close in interface swim.api.Link
      • trace

        public void trace​(Object message)
        Specified by:
        trace in interface swim.api.downlink.Downlink
        Specified by:
        trace in interface swim.api.Link
        Specified by:
        trace in interface swim.util.Log
      • debug

        public void debug​(Object message)
        Specified by:
        debug in interface swim.api.downlink.Downlink
        Specified by:
        debug in interface swim.api.Link
        Specified by:
        debug in interface swim.util.Log
      • info

        public void info​(Object message)
        Specified by:
        info in interface swim.api.downlink.Downlink
        Specified by:
        info in interface swim.api.Link
        Specified by:
        info in interface swim.util.Log
      • warn

        public void warn​(Object message)
        Specified by:
        warn in interface swim.api.downlink.Downlink
        Specified by:
        warn in interface swim.api.Link
        Specified by:
        warn in interface swim.util.Log
      • error

        public void error​(Object message)
        Specified by:
        error in interface swim.api.downlink.Downlink
        Specified by:
        error in interface swim.api.Link
        Specified by:
        error in interface swim.util.Log