Class SerialChannel

java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.nio.AbstractNioChannel
io.netty.channel.nio.AbstractNioByteChannel
org.apache.plc4x.java.transport.serial.SerialChannel
All Implemented Interfaces:
io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.channel.socket.DuplexChannel, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>

public class SerialChannel extends io.netty.channel.nio.AbstractNioByteChannel implements io.netty.channel.socket.DuplexChannel
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioByteChannel

    io.netty.channel.nio.AbstractNioByteChannel.NioByteUnsafe

    Nested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioChannel

    io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe, io.netty.channel.nio.AbstractNioChannel.NioUnsafe

    Nested classes/interfaces inherited from class io.netty.channel.AbstractChannel

    io.netty.channel.AbstractChannel.AbstractUnsafe

    Nested classes/interfaces inherited from interface io.netty.channel.Channel

    io.netty.channel.Channel.Unsafe
  • Field Summary

    Fields inherited from class io.netty.channel.nio.AbstractNioChannel

    readInterestOp
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    SerialChannel(io.netty.channel.Channel parent, SelectableChannel ch)
    Create a new instance
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.channel.ChannelConfig
     
    protected void
    doBind(SocketAddress localAddress)
     
    protected void
     
    protected boolean
    doConnect(SocketAddress remoteAddress, SocketAddress localAddress)
     
    protected void
     
    protected void
     
    protected int
    doReadBytes(io.netty.buffer.ByteBuf buf)
     
    protected int
    doWriteBytes(io.netty.buffer.ByteBuf buf)
     
    protected long
    doWriteFileRegion(io.netty.channel.FileRegion region)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    protected SocketAddress
     
    protected SocketAddress
     
    io.netty.channel.ChannelFuture
     
    io.netty.channel.ChannelFuture
    shutdown(io.netty.channel.ChannelPromise promise)
     
    io.netty.channel.ChannelFuture
     
    io.netty.channel.ChannelFuture
    shutdownInput(io.netty.channel.ChannelPromise promise)
     
    io.netty.channel.ChannelFuture
     
    io.netty.channel.ChannelFuture
    shutdownOutput(io.netty.channel.ChannelPromise promise)
     
    io.netty.channel.nio.AbstractNioChannel.NioUnsafe
     

    Methods inherited from class io.netty.channel.nio.AbstractNioByteChannel

    clearOpWrite, doWrite, doWrite0, filterOutboundMessage, incompleteWrite, isInputShutdown0, metadata, newUnsafe, setOpWrite

    Methods inherited from class io.netty.channel.nio.AbstractNioChannel

    clearReadPending, doBeginRead, doDeregister, doRegister, eventLoop, isCompatible, isOpen, isReadPending, javaChannel, newDirectBuffer, newDirectBuffer, selectionKey, setReadPending

    Methods inherited from class io.netty.channel.AbstractChannel

    alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush

    Methods inherited from class io.netty.util.DefaultAttributeMap

    attr, hasAttr

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.netty.util.AttributeMap

    attr, hasAttr

    Methods inherited from interface io.netty.channel.Channel

    alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isOpen, isRegistered, isWritable, localAddress, metadata, parent, pipeline, read, remoteAddress

    Methods inherited from interface io.netty.channel.ChannelOutboundInvoker

    bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Constructor Details

    • SerialChannel

      public SerialChannel()
    • SerialChannel

      protected SerialChannel(io.netty.channel.Channel parent, SelectableChannel ch)
      Create a new instance
      Parameters:
      parent - the parent Channel by which this instance was created. May be null
      ch - the underlying SelectableChannel on which it operates
  • Method Details

    • unsafe

      public io.netty.channel.nio.AbstractNioChannel.NioUnsafe unsafe()
      Specified by:
      unsafe in interface io.netty.channel.Channel
      Overrides:
      unsafe in class io.netty.channel.nio.AbstractNioChannel
    • isInputShutdown

      public boolean isInputShutdown()
      Specified by:
      isInputShutdown in interface io.netty.channel.socket.DuplexChannel
    • shutdownInput

      public io.netty.channel.ChannelFuture shutdownInput()
      Specified by:
      shutdownInput in interface io.netty.channel.socket.DuplexChannel
      Specified by:
      shutdownInput in class io.netty.channel.nio.AbstractNioByteChannel
    • shutdownInput

      public io.netty.channel.ChannelFuture shutdownInput(io.netty.channel.ChannelPromise promise)
      Specified by:
      shutdownInput in interface io.netty.channel.socket.DuplexChannel
    • isOutputShutdown

      public boolean isOutputShutdown()
      Specified by:
      isOutputShutdown in interface io.netty.channel.socket.DuplexChannel
    • shutdownOutput

      public io.netty.channel.ChannelFuture shutdownOutput()
      Specified by:
      shutdownOutput in interface io.netty.channel.socket.DuplexChannel
    • shutdownOutput

      public io.netty.channel.ChannelFuture shutdownOutput(io.netty.channel.ChannelPromise promise)
      Specified by:
      shutdownOutput in interface io.netty.channel.socket.DuplexChannel
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface io.netty.channel.socket.DuplexChannel
    • shutdown

      public io.netty.channel.ChannelFuture shutdown()
      Specified by:
      shutdown in interface io.netty.channel.socket.DuplexChannel
    • shutdown

      public io.netty.channel.ChannelFuture shutdown(io.netty.channel.ChannelPromise promise)
      Specified by:
      shutdown in interface io.netty.channel.socket.DuplexChannel
    • doWriteFileRegion

      protected long doWriteFileRegion(io.netty.channel.FileRegion region) throws Exception
      Specified by:
      doWriteFileRegion in class io.netty.channel.nio.AbstractNioByteChannel
      Throws:
      Exception
    • doReadBytes

      protected int doReadBytes(io.netty.buffer.ByteBuf buf) throws Exception
      Specified by:
      doReadBytes in class io.netty.channel.nio.AbstractNioByteChannel
      Throws:
      Exception
    • doWriteBytes

      protected int doWriteBytes(io.netty.buffer.ByteBuf buf) throws Exception
      Specified by:
      doWriteBytes in class io.netty.channel.nio.AbstractNioByteChannel
      Throws:
      Exception
    • doConnect

      protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
      Specified by:
      doConnect in class io.netty.channel.nio.AbstractNioChannel
      Throws:
      Exception
    • doClose

      protected void doClose() throws Exception
      Overrides:
      doClose in class io.netty.channel.nio.AbstractNioChannel
      Throws:
      Exception
    • doFinishConnect

      protected void doFinishConnect() throws Exception
      Specified by:
      doFinishConnect in class io.netty.channel.nio.AbstractNioChannel
      Throws:
      Exception
    • localAddress0

      protected SocketAddress localAddress0()
      Specified by:
      localAddress0 in class io.netty.channel.AbstractChannel
    • remoteAddress0

      protected SocketAddress remoteAddress0()
      Specified by:
      remoteAddress0 in class io.netty.channel.AbstractChannel
    • doBind

      protected void doBind(SocketAddress localAddress) throws Exception
      Specified by:
      doBind in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • doDisconnect

      protected void doDisconnect() throws Exception
      Specified by:
      doDisconnect in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • config

      public io.netty.channel.ChannelConfig config()
      Specified by:
      config in interface io.netty.channel.Channel
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface io.netty.channel.Channel