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
-
-
Constructor Summary
Constructors Modifier Constructor Description SerialChannel()protectedSerialChannel(io.netty.channel.Channel parent, SelectableChannel ch)Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.channel.ChannelConfigconfig()protected voiddoBind(SocketAddress localAddress)protected voiddoClose()protected booleandoConnect(SocketAddress remoteAddress, SocketAddress localAddress)protected voiddoDisconnect()protected voiddoFinishConnect()protected intdoReadBytes(io.netty.buffer.ByteBuf buf)protected intdoWriteBytes(io.netty.buffer.ByteBuf buf)protected longdoWriteFileRegion(io.netty.channel.FileRegion region)booleanisActive()booleanisInputShutdown()booleanisOutputShutdown()booleanisShutdown()protected SocketAddresslocalAddress0()protected SocketAddressremoteAddress0()io.netty.channel.ChannelFutureshutdown()io.netty.channel.ChannelFutureshutdown(io.netty.channel.ChannelPromise promise)io.netty.channel.ChannelFutureshutdownInput()io.netty.channel.ChannelFutureshutdownInput(io.netty.channel.ChannelPromise promise)io.netty.channel.ChannelFutureshutdownOutput()io.netty.channel.ChannelFutureshutdownOutput(io.netty.channel.ChannelPromise promise)io.netty.channel.nio.AbstractNioChannel.NioUnsafeunsafe()-
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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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 Detail
-
SerialChannel
public SerialChannel()
-
SerialChannel
protected SerialChannel(io.netty.channel.Channel parent, SelectableChannel ch)Create a new instance- Parameters:
parent- the parentChannelby which this instance was created. May benullch- the underlyingSelectableChannelon which it operates
-
-
Method Detail
-
unsafe
public io.netty.channel.nio.AbstractNioChannel.NioUnsafe unsafe()
- Specified by:
unsafein interfaceio.netty.channel.Channel- Overrides:
unsafein classio.netty.channel.nio.AbstractNioChannel
-
isInputShutdown
public boolean isInputShutdown()
- Specified by:
isInputShutdownin interfaceio.netty.channel.socket.DuplexChannel
-
shutdownInput
public io.netty.channel.ChannelFuture shutdownInput()
- Specified by:
shutdownInputin interfaceio.netty.channel.socket.DuplexChannel- Specified by:
shutdownInputin classio.netty.channel.nio.AbstractNioByteChannel
-
shutdownInput
public io.netty.channel.ChannelFuture shutdownInput(io.netty.channel.ChannelPromise promise)
- Specified by:
shutdownInputin interfaceio.netty.channel.socket.DuplexChannel
-
isOutputShutdown
public boolean isOutputShutdown()
- Specified by:
isOutputShutdownin interfaceio.netty.channel.socket.DuplexChannel
-
shutdownOutput
public io.netty.channel.ChannelFuture shutdownOutput()
- Specified by:
shutdownOutputin interfaceio.netty.channel.socket.DuplexChannel
-
shutdownOutput
public io.netty.channel.ChannelFuture shutdownOutput(io.netty.channel.ChannelPromise promise)
- Specified by:
shutdownOutputin interfaceio.netty.channel.socket.DuplexChannel
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin interfaceio.netty.channel.socket.DuplexChannel
-
shutdown
public io.netty.channel.ChannelFuture shutdown()
- Specified by:
shutdownin interfaceio.netty.channel.socket.DuplexChannel
-
shutdown
public io.netty.channel.ChannelFuture shutdown(io.netty.channel.ChannelPromise promise)
- Specified by:
shutdownin interfaceio.netty.channel.socket.DuplexChannel
-
doWriteFileRegion
protected long doWriteFileRegion(io.netty.channel.FileRegion region) throws Exception- Specified by:
doWriteFileRegionin classio.netty.channel.nio.AbstractNioByteChannel- Throws:
Exception
-
doReadBytes
protected int doReadBytes(io.netty.buffer.ByteBuf buf) throws Exception- Specified by:
doReadBytesin classio.netty.channel.nio.AbstractNioByteChannel- Throws:
Exception
-
doWriteBytes
protected int doWriteBytes(io.netty.buffer.ByteBuf buf) throws Exception- Specified by:
doWriteBytesin classio.netty.channel.nio.AbstractNioByteChannel- Throws:
Exception
-
doConnect
protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
- Specified by:
doConnectin classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
doClose
protected void doClose() throws Exception- Overrides:
doClosein classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
doFinishConnect
protected void doFinishConnect() throws Exception- Specified by:
doFinishConnectin classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
localAddress0
protected SocketAddress localAddress0()
- Specified by:
localAddress0in classio.netty.channel.AbstractChannel
-
remoteAddress0
protected SocketAddress remoteAddress0()
- Specified by:
remoteAddress0in classio.netty.channel.AbstractChannel
-
doBind
protected void doBind(SocketAddress localAddress) throws Exception
- Specified by:
doBindin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDisconnect
protected void doDisconnect() throws Exception- Specified by:
doDisconnectin classio.netty.channel.AbstractChannel- Throws:
Exception
-
config
public io.netty.channel.ChannelConfig config()
- Specified by:
configin interfaceio.netty.channel.Channel
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceio.netty.channel.Channel
-
-