Class NettyConnection

java.lang.Object
com.swiftmq.swiftlet.net.Connection
com.swiftmq.impl.net.netty.scheduler.NettyConnection

public class NettyConnection extends com.swiftmq.swiftlet.net.Connection
  • Field Summary

    Fields inherited from class com.swiftmq.swiftlet.net.Connection

    dnsResolve
  • Constructor Summary

    Constructors
    Constructor
    Description
    NettyConnection(SwiftletContext ctx, io.netty.channel.socket.SocketChannel channel, boolean dnsResolve)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
     
    int
     
    void
    setMetaData(com.swiftmq.swiftlet.net.ConnectionMetaData metaData)
     
     

    Methods inherited from class com.swiftmq.swiftlet.net.Connection

    getConnectTime, getInboundHandler, getInputActiveIndicator, getMetaData, getProtocolInputHandler, getProtocolOutputHandler, getUserObject, isClosed, isMarkedForClose, setConnectionListener, setInboundHandler, setMarkedForClose, setProtocolInputHandler, setProtocolOutputHandler, setUserObject

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NettyConnection

      public NettyConnection(SwiftletContext ctx, io.netty.channel.socket.SocketChannel channel, boolean dnsResolve)
  • Method Details

    • getHostname

      public String getHostname()
      Specified by:
      getHostname in class com.swiftmq.swiftlet.net.Connection
    • getPort

      public int getPort()
    • setMetaData

      public void setMetaData(com.swiftmq.swiftlet.net.ConnectionMetaData metaData)
      Overrides:
      setMetaData in class com.swiftmq.swiftlet.net.Connection
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in class com.swiftmq.swiftlet.net.Connection
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in class com.swiftmq.swiftlet.net.Connection
    • close

      public void close()
      Overrides:
      close in class com.swiftmq.swiftlet.net.Connection
    • toString

      public String toString()
      Overrides:
      toString in class Object