- java.lang.Object
-
- io.netty5.util.DefaultAttributeMap
-
- io.netty5.channel.AbstractChannel<P,L,R>
-
- io.netty5.channel.AbstractServerChannel<LocalChannel,LocalAddress,LocalAddress>
-
- io.netty5.channel.local.LocalServerChannel
-
- All Implemented Interfaces:
Channel,ChannelOutboundInvoker,IoHandle,ServerChannel,AttributeMap,FuturePromiseFactory,Comparable<Channel>
public class LocalServerChannel extends AbstractServerChannel<LocalChannel,LocalAddress,LocalAddress>
AServerChannelfor the local transport which allows in VM communication.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty5.channel.AbstractChannel
AbstractChannel.DefaultAbstractChannelPipeline
-
-
Constructor Summary
Constructors Constructor Description LocalServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseTransportNow()voidderegisterTransportNow()protected voiddoBeginRead()Schedule a read operation.protected voiddoBind(SocketAddress localAddress)Bind theChannelto theSocketAddressprotected voiddoClose()Close theChannelbooleanisActive()Returntrueif theChannelis active and so connected.booleanisOpen()Returnstrueif theChannelis open and may get active laterprotected LocalAddresslocalAddress0()Returns theSocketAddresswhich is bound locally.protected LocalChannelnewLocalChannel(LocalChannel peer)A factory method forLocalChannels.voidregisterTransportNow()-
Methods inherited from class io.netty5.channel.AbstractServerChannel
childEventLoopGroup, doConnect, doDisconnect, doFinishConnect, doShutdown, doWrite, filterOutboundMessage, isShutdown, remoteAddress0
-
Methods inherited from class io.netty5.channel.AbstractChannel
annotateConnectException, assertEventLoop, autoReadCleared, bufferAllocator, cacheAddresses, closeForciblyTransport, closeFuture, closeIfClosed, closeTransport, compareTo, deregisterTransport, ensureOpen, equals, executor, finishConnect, fireChannelActiveIfNotActiveBefore, getExtendedOption, getMaxMessagesPerWrite, getOption, getWriteSpinCount, handleWriteError, hashCode, id, isAllowHalfClosure, isAutoRead, isConnectPending, isExtendedOptionSupported, isOptionSupported, isRegistered, localAddress, metadata, newChannelPipeline, newSupportedIdentityOptionsSet, outboundBuffer, parent, pipeline, prepareToClose, readIfIsAutoRead, recvBufAllocHandle, remoteAddress, runAfterTransportAction, safeSetFailure, safeSetSuccess, setBufferAllocator, setExtendedOption, setOption, shutdownTransport, toString, validate, validateEventLoopGroup, validateFileRegion, writableBytes, writeFlushed
-
Methods inherited from class io.netty5.util.DefaultAttributeMap
attr, hasAttr
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty5.util.AttributeMap
attr, hasAttr
-
Methods inherited from interface io.netty5.channel.Channel
bind, bufferAllocator, close, closeFuture, connect, connect, deregister, disconnect, executor, flush, getOption, id, isOptionSupported, isWritable, localAddress, metadata, parent, pipeline, read, register, remoteAddress, sendOutboundEvent, setOption, shutdown, writableBytes, write, writeAndFlush
-
Methods inherited from interface io.netty5.channel.ChannelOutboundInvoker
newFailedFuture, newPromise, newSucceededFuture, newSucceededFuture
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface io.netty5.channel.IoHandle
isRegistered
-
-
-
-
Constructor Detail
-
LocalServerChannel
public LocalServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
-
-
Method Detail
-
isOpen
public boolean isOpen()
Description copied from interface:ChannelReturnstrueif theChannelis open and may get active later
-
isActive
public boolean isActive()
Description copied from interface:ChannelReturntrueif theChannelis active and so connected.
-
localAddress0
protected LocalAddress localAddress0()
Description copied from class:AbstractChannelReturns theSocketAddresswhich is bound locally.- Specified by:
localAddress0in classAbstractChannel<LocalChannel,LocalAddress,LocalAddress>
-
doBind
protected void doBind(SocketAddress localAddress) throws Exception
Description copied from class:AbstractChannelBind theChannelto theSocketAddress- Specified by:
doBindin classAbstractChannel<LocalChannel,LocalAddress,LocalAddress>- Throws:
Exception
-
doClose
protected void doClose() throws ExceptionDescription copied from class:AbstractChannelClose theChannel- Specified by:
doClosein classAbstractChannel<LocalChannel,LocalAddress,LocalAddress>- Throws:
Exception
-
doBeginRead
protected void doBeginRead() throws ExceptionDescription copied from class:AbstractChannelSchedule a read operation.- Specified by:
doBeginReadin classAbstractChannel<LocalChannel,LocalAddress,LocalAddress>- Throws:
Exception
-
newLocalChannel
protected LocalChannel newLocalChannel(LocalChannel peer)
A factory method forLocalChannels. Users may override it to create custom instances ofLocalChannels.
-
registerTransportNow
public void registerTransportNow()
-
deregisterTransportNow
public void deregisterTransportNow()
-
closeTransportNow
public void closeTransportNow()
-
-