Package io.netty.channel.kqueue
Class AbstractKQueueServerChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.kqueue.AbstractKQueueChannel
io.netty.channel.kqueue.AbstractKQueueServerChannel
- All Implemented Interfaces:
Channel,ChannelOutboundInvoker,ServerChannel,UnixChannel,AttributeMap,Comparable<Channel>
- Direct Known Subclasses:
KQueueServerDomainSocketChannel,KQueueServerSocketChannel
public abstract class AbstractKQueueServerChannel
extends AbstractKQueueChannel
implements ServerChannel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final classNested classes/interfaces inherited from class io.netty.channel.kqueue.AbstractKQueueChannel
AbstractKQueueChannel.AbstractKQueueUnsafeNested classes/interfaces inherited from class io.netty.channel.AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe -
Field Summary
FieldsFields inherited from class io.netty.channel.kqueue.AbstractKQueueChannel
active, inputClosedSeenErrorOnRead, readReadyRunnablePending, registration, socket -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoConnect(SocketAddress remoteAddress, SocketAddress localAddress) Connect to the remote peerprotected voidFlush the content of the given buffer to the remote peer.protected ObjectInvoked when a new message is added to aChannelOutboundBufferof thisAbstractChannel, so that theChannelimplementation converts the message to another.protected booleanisCompatible(EventLoop loop) Returntrueif the givenEventLoopis compatible with this instance.metadata()(package private) abstract ChannelnewChildChannel(int fd, byte[] remote, int offset, int len) Create a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelprotected InetSocketAddressReturn theSocketAddresswhich theChannelis connected to.Methods inherited from class io.netty.channel.kqueue.AbstractKQueueChannel
checkResolvable, clearReadFilter, config, doBeginRead, doBind, doClose, doConnect0, doDeregister, doDisconnect, doReadBytes, doRegister, doWriteBytes, fd, isActive, isOpen, isSoErrorZero, localAddress0, newDirectBuffer, newDirectBuffer, readFilter, resetCachedAddresses, shouldBreakReadReady, unregisterFilters, writeFilterMethods 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, eventLoop, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, 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, config, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, localAddress, parent, pipeline, read, remoteAddress, unsafeMethods 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
-
Field Details
-
METADATA
-
-
Constructor Details
-
Method Details
-
metadata
Description copied from interface:Channel- Specified by:
metadatain interfaceChannel- Overrides:
metadatain classAbstractKQueueChannel
-
isCompatible
Description copied from class:AbstractChannelReturntrueif the givenEventLoopis compatible with this instance.- Overrides:
isCompatiblein classAbstractKQueueChannel
-
remoteAddress0
Description copied from class:AbstractChannelReturn theSocketAddresswhich theChannelis connected to.- Overrides:
remoteAddress0in classAbstractKQueueChannel
-
newUnsafe
Description copied from class:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Specified by:
newUnsafein classAbstractKQueueChannel
-
doWrite
Description copied from class:AbstractChannelFlush the content of the given buffer to the remote peer.- Specified by:
doWritein classAbstractChannel- Throws:
Exception
-
filterOutboundMessage
Description copied from class:AbstractChannelInvoked when a new message is added to aChannelOutboundBufferof thisAbstractChannel, so that theChannelimplementation converts the message to another. (e.g. heap buffer -> direct buffer)- Overrides:
filterOutboundMessagein classAbstractChannel- Throws:
Exception
-
newChildChannel
- Throws:
Exception
-
doConnect
protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Description copied from class:AbstractKQueueChannelConnect to the remote peer- Overrides:
doConnectin classAbstractKQueueChannel- Throws:
Exception
-