Module swim.runtime

Class UplinkModem

    • Field Detail

      • linkKey

        protected final swim.structure.Value linkKey
      • status

        protected volatile int status
      • observers

        protected volatile Object observers
    • Method Detail

      • laneBinding

        public abstract LaneBinding laneBinding()
      • stage

        public abstract swim.concurrent.Stage stage()
      • hostUri

        public final swim.uri.Uri hostUri()
        Specified by:
        hostUri in interface swim.api.Link
        Specified by:
        hostUri in interface swim.api.uplink.Uplink
      • nodeUri

        public final swim.uri.Uri nodeUri()
        Specified by:
        nodeUri in interface swim.api.Link
        Specified by:
        nodeUri in interface swim.api.uplink.Uplink
      • laneUri

        public final swim.uri.Uri laneUri()
        Specified by:
        laneUri in interface swim.api.Link
        Specified by:
        laneUri in interface swim.api.uplink.Uplink
      • linkKey

        public final swim.structure.Value linkKey()
        Specified by:
        linkKey in interface LinkContext
      • prio

        public final float prio()
        Specified by:
        prio in interface swim.api.uplink.Uplink
      • rate

        public final float rate()
        Specified by:
        rate in interface swim.api.uplink.Uplink
      • body

        public final swim.structure.Value body()
        Specified by:
        body in interface swim.api.uplink.Uplink
      • isConnected

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

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

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

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

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

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

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

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

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

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

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

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

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

        public UplinkModem observe​(Object newObserver)
        Specified by:
        observe in interface swim.api.Link
        Specified by:
        observe in interface swim.observable.Observable<Object>
        Specified by:
        observe in interface swim.api.uplink.Uplink
      • unobserve

        public UplinkModem unobserve​(Object oldObserver)
        Specified by:
        unobserve in interface swim.api.Link
        Specified by:
        unobserve in interface swim.observable.Observable<Object>
        Specified by:
        unobserve in interface swim.api.uplink.Uplink
      • onEvent

        public UplinkModem onEvent​(swim.api.uplink.function.OnEvent onEvent)
        Specified by:
        onEvent in interface swim.api.uplink.Uplink
      • onCommand

        public UplinkModem onCommand​(swim.api.uplink.function.OnCommand onCommand)
        Specified by:
        onCommand in interface swim.api.uplink.Uplink
      • onLink

        public UplinkModem onLink​(swim.api.uplink.function.OnLink onLink)
        Specified by:
        onLink in interface swim.api.uplink.Uplink
      • onLinked

        public UplinkModem onLinked​(swim.api.uplink.function.OnLinked onLinked)
        Specified by:
        onLinked in interface swim.api.uplink.Uplink
      • onSync

        public UplinkModem onSync​(swim.api.uplink.function.OnSync onSync)
        Specified by:
        onSync in interface swim.api.uplink.Uplink
      • onSynced

        public UplinkModem onSynced​(swim.api.uplink.function.OnSynced onSynced)
        Specified by:
        onSynced in interface swim.api.uplink.Uplink
      • onUnlink

        public UplinkModem onUnlink​(swim.api.uplink.function.OnUnlink onUnlink)
        Specified by:
        onUnlink in interface swim.api.uplink.Uplink
      • onUnlinked

        public UplinkModem onUnlinked​(swim.api.uplink.function.OnUnlinked onUnlinked)
        Specified by:
        onUnlinked in interface swim.api.uplink.Uplink
      • didClose

        public UplinkModem didClose​(swim.api.function.DidClose didClose)
        Specified by:
        didClose in interface swim.api.uplink.Uplink
      • dispatchOnEvent

        protected void dispatchOnEvent​(swim.warp.EventMessage message)
      • dispatchOnCommand

        protected boolean dispatchOnCommand​(swim.warp.CommandMessage message,
                                            boolean preemptive)
      • dispatchOnLink

        protected boolean dispatchOnLink​(swim.warp.LinkRequest request,
                                         boolean preemptive)
      • dispatchOnLinked

        protected void dispatchOnLinked​(swim.warp.LinkedResponse response)
      • dispatchOnSync

        protected boolean dispatchOnSync​(swim.warp.SyncRequest request,
                                         boolean preemptive)
      • dispatchOnSynced

        protected void dispatchOnSynced​(swim.warp.SyncedResponse response)
      • dispatchOnUnlink

        protected boolean dispatchOnUnlink​(swim.warp.UnlinkRequest request,
                                           boolean preemptive)
      • dispatchOnUnlinked

        protected void dispatchOnUnlinked​(swim.warp.UnlinkedResponse response)
      • dispatchDidClose

        protected void dispatchDidClose()
      • downQueueIsEmpty

        protected boolean downQueueIsEmpty()
      • queueDown

        protected void queueDown​(swim.structure.Value body)
      • nextDownQueue

        protected swim.structure.Value nextDownQueue()
      • nextDownQueueEvent

        protected swim.warp.EventMessage nextDownQueueEvent()
      • nextDownCue

        protected swim.structure.Value nextDownCue()
      • nextDownCueEvent

        protected swim.warp.EventMessage nextDownCueEvent()
      • sendDown

        public void sendDown​(swim.structure.Value body)
      • cueDown

        public void cueDown()
      • runPullDown

        protected void runPullDown()
      • pullDownEnvelope

        protected void pullDownEnvelope()
      • pullDownEvent

        protected void pullDownEvent​(swim.warp.EventMessage message)
      • pullDownLinked

        protected void pullDownLinked​(swim.warp.LinkedResponse response)
      • pullDownSynced

        protected void pullDownSynced​(swim.warp.SyncedResponse response)
      • pullDownUnlinked

        protected void pullDownUnlinked​(swim.warp.UnlinkedResponse response)
      • cueUp

        public void cueUp()
      • pushUp

        public void pushUp​(swim.warp.Envelope envelope)
        Specified by:
        pushUp in interface LinkContext
      • pushUpCommand

        protected void pushUpCommand​(swim.warp.CommandMessage message)
      • runOnCommand

        protected void runOnCommand​(swim.warp.CommandMessage message)
      • pushUpLink

        protected void pushUpLink​(swim.warp.LinkRequest request)
      • runOnLink

        protected void runOnLink​(swim.warp.LinkRequest request)
      • pushUpSync

        protected void pushUpSync​(swim.warp.SyncRequest request)
      • runOnSync

        protected void runOnSync​(swim.warp.SyncRequest request)
      • pushUpUnlink

        protected void pushUpUnlink​(swim.warp.UnlinkRequest request)
      • runOnUnlink

        protected void runOnUnlink​(swim.warp.UnlinkRequest request)
      • pushUpEnvelope

        protected void pushUpEnvelope​(swim.warp.Envelope envelope)
      • unlink

        public void unlink()
      • close

        public void close()
        Specified by:
        close in interface swim.api.Link
        Specified by:
        close in interface swim.api.uplink.Uplink
      • onEvent

        protected void onEvent​(swim.warp.EventMessage message)
      • onCommand

        protected void onCommand​(swim.warp.CommandMessage message)
      • willLink

        protected void willLink​(swim.warp.LinkRequest request)
      • didLink

        protected void didLink​(swim.warp.LinkedResponse response)
      • willSync

        protected void willSync​(swim.warp.SyncRequest request)
      • didSync

        protected void didSync​(swim.warp.SyncedResponse response)
      • willUnlink

        protected void willUnlink​(swim.warp.UnlinkRequest request)
      • didUnlink

        protected void didUnlink​(swim.warp.UnlinkedResponse response)
      • didFail

        protected void didFail​(Throwable error)
      • linkedResponse

        protected swim.warp.LinkedResponse linkedResponse()
      • syncedResponse

        protected swim.warp.SyncedResponse syncedResponse()
      • unlinkedResponse

        protected swim.warp.UnlinkedResponse unlinkedResponse()
      • trace

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

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

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

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

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