Package io.netty.channel.uring
Class AbstractIoUringServerChannel
- java.lang.Object
-
- io.netty.util.DefaultAttributeMap
-
- io.netty.channel.AbstractChannel
-
- io.netty.channel.uring.AbstractIoUringChannel
-
- io.netty.channel.uring.AbstractIoUringServerChannel
-
- All Implemented Interfaces:
Channel,ChannelOutboundInvoker,ServerChannel,UnixChannel,AttributeMap,java.lang.Comparable<Channel>
- Direct Known Subclasses:
IoUringServerDomainSocketChannel,IoUringServerSocketChannel
abstract class AbstractIoUringServerChannel extends AbstractIoUringChannel implements ServerChannel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAbstractIoUringServerChannel.AcceptedAddressMemoryprivate classAbstractIoUringServerChannel.UringServerChannelUnsafe-
Nested classes/interfaces inherited from class io.netty.channel.uring.AbstractIoUringChannel
AbstractIoUringChannel.AbstractUringUnsafe
-
Nested classes/interfaces inherited from class io.netty.channel.AbstractChannel
AbstractChannel.AbstractUnsafe
-
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractIoUringServerChannel.AcceptedAddressMemoryacceptedAddressMemoryprivate longacceptIdprivate static ChannelMetadataMETADATA-
Fields inherited from class io.netty.channel.uring.AbstractIoUringChannel
active, socket, writeTracker
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractIoUringServerChannel(LinuxSocket socket, boolean active)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcancelOutstandingReads(IoRegistration registration, int numOutstandingReads)Cancel all outstanding readsprotected voidcancelOutstandingWrites(IoRegistration registration, int numOutstandingWrites)Cancel all outstanding writesprotected voiddoClose()Close theChannelprotected voiddoWrite(ChannelOutboundBuffer in)Flush the content of the given buffer to the remote peer.(package private) booleanisPollInFirst()protected booleanisStreamSocket()ChannelMetadatametadata()(package private) abstract ChannelnewChildChannel(int fd, java.nio.ByteBuffer acceptedAddressMemory)protected AbstractIoUringChannel.AbstractUringUnsafenewUnsafe()Create a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannelprotected booleansocketIsEmpty(int flags)Return if the socket is guaranteed to be empty when the submitted io was executed and the completion event be created.-
Methods inherited from class io.netty.channel.uring.AbstractIoUringChannel
allowMultiShotPollIn, autoReadCleared, checkResolvable, doBeginRead, doBind, doDeregister, doDisconnect, doRegister, doShutdownOutput, doShutdownOutput0, fd, filterOutboundMessage, isActive, isCompatible, isOpen, localAddress0, newDirectBuffer, newDirectBuffer, nextOpsId, registration, remoteAddress0, resetCachedAddresses, schedulePollRdHup, scheduleWriteIfNeeded, submitAndRunNow
-
Methods inherited from class io.netty.channel.AbstractChannel
closeFuture, compareTo, doRegister, equals, eventLoop, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, localAddress, maxMessagesPerWrite, newChannelPipeline, newId, parent, pipeline, remoteAddress, toString, unsafe, validateFileRegion, voidPromise
-
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, 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, writeAndFlush
-
-
-
-
Field Detail
-
METADATA
private static final ChannelMetadata METADATA
-
acceptedAddressMemory
private final AbstractIoUringServerChannel.AcceptedAddressMemory acceptedAddressMemory
-
acceptId
private long acceptId
-
-
Constructor Detail
-
AbstractIoUringServerChannel
protected AbstractIoUringServerChannel(LinuxSocket socket, boolean active)
-
-
Method Detail
-
isStreamSocket
protected final boolean isStreamSocket()
- Specified by:
isStreamSocketin classAbstractIoUringChannel
-
metadata
public final ChannelMetadata metadata()
Description copied from interface:Channel
-
doClose
protected final void doClose() throws java.lang.ExceptionDescription copied from class:AbstractChannelClose theChannel- Overrides:
doClosein classAbstractIoUringChannel- Throws:
java.lang.Exception
-
newUnsafe
protected final AbstractIoUringChannel.AbstractUringUnsafe newUnsafe()
Description copied from class:AbstractChannelCreate a newAbstractChannel.AbstractUnsafeinstance which will be used for the life-time of theChannel- Specified by:
newUnsafein classAbstractChannel
-
doWrite
protected final void doWrite(ChannelOutboundBuffer in)
Description copied from class:AbstractChannelFlush the content of the given buffer to the remote peer.- Overrides:
doWritein classAbstractIoUringChannel
-
cancelOutstandingReads
protected final void cancelOutstandingReads(IoRegistration registration, int numOutstandingReads)
Description copied from class:AbstractIoUringChannelCancel all outstanding reads- Specified by:
cancelOutstandingReadsin classAbstractIoUringChannel- Parameters:
registration- theIoRegistration.numOutstandingReads- the number of outstanding reads, or-1if multi-shot was used.
-
cancelOutstandingWrites
protected final void cancelOutstandingWrites(IoRegistration registration, int numOutstandingWrites)
Description copied from class:AbstractIoUringChannelCancel all outstanding writes- Specified by:
cancelOutstandingWritesin classAbstractIoUringChannel- Parameters:
registration- theIoRegistration.numOutstandingWrites- the number of outstanding writes.
-
newChildChannel
abstract Channel newChildChannel(int fd, java.nio.ByteBuffer acceptedAddressMemory) throws java.lang.Exception
- Throws:
java.lang.Exception
-
socketIsEmpty
protected boolean socketIsEmpty(int flags)
Description copied from class:AbstractIoUringChannelReturn if the socket is guaranteed to be empty when the submitted io was executed and the completion event be created.- Specified by:
socketIsEmptyin classAbstractIoUringChannel- Parameters:
flags- the flags that were part of the completion- Returns:
trueif empty.
-
isPollInFirst
boolean isPollInFirst()
- Specified by:
isPollInFirstin classAbstractIoUringChannel
-
-