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.NioByteUnsafeNested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioChannel
io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe, io.netty.channel.nio.AbstractNioChannel.NioUnsafeNested classes/interfaces inherited from class io.netty.channel.AbstractChannel
io.netty.channel.AbstractChannel.AbstractUnsafeNested 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
ConstructorsModifierConstructorDescriptionprotectedSerialChannel(io.netty.channel.Channel parent, SelectableChannel ch) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelConfigconfig()protected voiddoBind(SocketAddress localAddress) protected voiddoClose()protected booleandoConnect(SocketAddress remoteAddress, SocketAddress localAddress) protected voidprotected voidprotected intdoReadBytes(io.netty.buffer.ByteBuf buf) protected intdoWriteBytes(io.netty.buffer.ByteBuf buf) protected longdoWriteFileRegion(io.netty.channel.FileRegion region) booleanisActive()booleanbooleanbooleanprotected SocketAddressprotected SocketAddressio.netty.channel.ChannelFutureshutdown()io.netty.channel.ChannelFutureshutdown(io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFutureio.netty.channel.ChannelFutureshutdownInput(io.netty.channel.ChannelPromise promise) io.netty.channel.ChannelFutureio.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, setOpWriteMethods inherited from class io.netty.channel.nio.AbstractNioChannel
clearReadPending, doBeginRead, doDeregister, doRegister, eventLoop, isCompatible, isOpen, isReadPending, javaChannel, newDirectBuffer, newDirectBuffer, selectionKey, setReadPendingMethods 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, writeAndFlushMethods inherited from class io.netty.util.DefaultAttributeMap
attr, hasAttrMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.util.AttributeMap
attr, hasAttrMethods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isOpen, isRegistered, isWritable, localAddress, metadata, parent, pipeline, read, remoteAddressMethods 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, writeAndFlushMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
SerialChannel
public SerialChannel() -
SerialChannel
Create a new instance- Parameters:
parent- the parentChannelby which this instance was created. May benullch- the underlyingSelectableChannelon which it operates
-
-
Method Details
-
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
- Specified by:
doWriteFileRegionin classio.netty.channel.nio.AbstractNioByteChannel- Throws:
Exception
-
doReadBytes
- Specified by:
doReadBytesin classio.netty.channel.nio.AbstractNioByteChannel- Throws:
Exception
-
doWriteBytes
- 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
- Overrides:
doClosein classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
doFinishConnect
- Specified by:
doFinishConnectin classio.netty.channel.nio.AbstractNioChannel- Throws:
Exception
-
localAddress0
- Specified by:
localAddress0in classio.netty.channel.AbstractChannel
-
remoteAddress0
- Specified by:
remoteAddress0in classio.netty.channel.AbstractChannel
-
doBind
- Specified by:
doBindin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDisconnect
- 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
-