Module swim.runtime
Package swim.runtime

Class DownlinkView

  • All Implemented Interfaces:
    swim.api.Downlink, swim.api.Link, swim.observable.Observable<Object>, swim.util.Log
    Direct Known Subclasses:
    WarpDownlinkView

    public abstract class DownlinkView
    extends Object
    implements swim.api.Downlink
    • Field Detail

      • stage

        protected final swim.concurrent.Stage stage
      • observers

        protected volatile Object observers
    • Constructor Detail

      • DownlinkView

        public DownlinkView​(CellContext cellContext,
                            swim.concurrent.Stage stage,
                            Object observers)
    • Method Detail

      • downlinkModel

        public abstract DownlinkModel<?> downlinkModel()
      • stage

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public DownlinkView observe​(Object newObserver)
        Specified by:
        observe in interface swim.api.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
        Specified by:
        unobserve in interface swim.api.Link
        Specified by:
        unobserve in interface swim.observable.Observable<Object>
      • didConnect

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

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

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

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

        public boolean dispatchDidConnect​(boolean preemptive)
      • dispatchDidDisconnect

        public boolean dispatchDidDisconnect​(boolean preemptive)
      • dispatchDidClose

        public boolean dispatchDidClose​(boolean preemptive)
      • dispatchDidFail

        public boolean dispatchDidFail​(Throwable cause,
                                       boolean preemptive)
      • 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
      • close

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

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

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

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

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

        public void error​(Object message)
        Specified by:
        error in interface swim.util.Log
      • fail

        public void fail​(Object message)
        Specified by:
        fail in interface swim.util.Log