Class AbstractEpollServerChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.epoll.AbstractEpollChannel
io.netty.channel.epoll.AbstractEpollServerChannel
- All Implemented Interfaces:
Channel, ChannelOutboundInvoker, ServerChannel, UnixChannel, AttributeMap, Comparable<Channel>
- Direct Known Subclasses:
EpollServerDomainSocketChannel, EpollServerSocketChannel
public abstract class AbstractEpollServerChannel
extends AbstractEpollChannel
implements ServerChannel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final classNested classes/interfaces inherited from class AbstractEpollChannel
AbstractEpollChannel.AbstractEpollUnsafeNested classes/interfaces inherited from class AbstractChannel
AbstractChannel.AbstractUnsafeNested classes/interfaces inherited from interface Channel
Channel.Unsafe -
Field Summary
FieldsFields inherited from class AbstractEpollChannel
active, inputClosedSeenErrorOnRead, socket -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEpollServerChannel(int fd) protectedprotectedAbstractEpollServerChannel(LinuxSocket fd, boolean active) -
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.metadata()protected abstract ChannelnewChildChannel(int fd, byte[] remote, int offset, int len) protected AbstractEpollChannel.AbstractEpollUnsafeCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelprotected InetSocketAddressReturn theSocketAddresswhich theChannelis connected to.Methods inherited from class AbstractEpollChannel
checkResolvable, clearEpollIn, clearFlag, config, doBeginRead, doBind, doClose, doConnect0, doDeregister, doDisconnect, doReadBytes, doRegister, doWriteBytes, doWriteOrSendBytes, fd, isActive, isCompatible, isFlagSet, isOpen, isSoErrorZero, localAddress0, newDirectBuffer, newDirectBuffer, registration, resetCachedAddresses, setFlag, shouldBreakEpollInReady, submitCurrentOpsMethods inherited from class AbstractChannel
closeFuture, compareTo, doRegister, doShutdownOutput, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, localAddress, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, remoteAddress, toString, unsafe, validateFileRegion, voidPromiseMethods inherited from class DefaultAttributeMap
attr, hasAttrMethods inherited from interface AttributeMap
attr, hasAttrMethods inherited from interface Channel
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, config, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, getOption, id, isActive, isOpen, isRegistered, isWritable, localAddress, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, setOption, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushMethods inherited from interface Comparable
compareTo
-
Field Details
-
METADATA
-
-
Constructor Details
-
AbstractEpollServerChannel
protected AbstractEpollServerChannel(int fd) -
AbstractEpollServerChannel
-
AbstractEpollServerChannel
-
-
Method Details
-
metadata
Description copied from interface:Channel- Specified by:
metadatain interfaceChannel- Overrides:
metadatain classAbstractEpollChannel
-
remoteAddress0
Description copied from class:AbstractChannelReturn theSocketAddresswhich theChannelis connected to.- Overrides:
remoteAddress0in classAbstractEpollChannel
-
newUnsafe
Description copied from class:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Specified by:
newUnsafein classAbstractEpollChannel
-
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
-
doConnect
protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Description copied from class:AbstractEpollChannelConnect to the remote peer- Overrides:
doConnectin classAbstractEpollChannel- Throws:
Exception
-