Package io.quarkus.netty.runtime.virtual
Class VirtualServerChannel
java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.AbstractServerChannel
io.quarkus.netty.runtime.virtual.VirtualServerChannel
- All Implemented Interfaces:
io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,io.netty.channel.ServerChannel,io.netty.util.AttributeMap,Comparable<io.netty.channel.Channel>
public class VirtualServerChannel
extends io.netty.channel.AbstractServerChannel
A
ServerChannel for the local transport which allows in VM communication.
This is a bit different from a LocalServerChannel in regular Netty
as it does not require a client event loop and exposes the client inbound queue directly.-
Nested Class Summary
Nested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelConfigconfig()protected voidprotected voiddoBind(SocketAddress localAddress) protected voiddoClose()protected voidprotected voidbooleanisActive()protected booleanisCompatible(io.netty.channel.EventLoop loop) booleanisOpen()protected SocketAddressprotected VirtualChannelA factory method forVirtualChannels.(package private) VirtualChannelserve(VirtualClientConnection peer) Methods inherited from class io.netty.channel.AbstractServerChannel
doDisconnect, doWrite, filterOutboundMessage, metadata, newUnsafe, remoteAddress0Methods 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, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, 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, eventLoop, flush, id, isRegistered, isWritable, parent, pipeline, read, 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
-
Constructor Details
-
VirtualServerChannel
public VirtualServerChannel()
-
-
Method Details
-
config
public io.netty.channel.ChannelConfig config() -
localAddress
- Specified by:
localAddressin interfaceio.netty.channel.Channel- Overrides:
localAddressin classio.netty.channel.AbstractChannel
-
remoteAddress
- Specified by:
remoteAddressin interfaceio.netty.channel.Channel- Overrides:
remoteAddressin classio.netty.channel.AbstractServerChannel
-
isOpen
public boolean isOpen() -
isActive
public boolean isActive() -
isCompatible
protected boolean isCompatible(io.netty.channel.EventLoop loop) - Specified by:
isCompatiblein classio.netty.channel.AbstractChannel
-
localAddress0
- Specified by:
localAddress0in classio.netty.channel.AbstractChannel
-
doRegister
- Overrides:
doRegisterin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doBind
- Specified by:
doBindin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doClose
- Specified by:
doClosein classio.netty.channel.AbstractChannel- Throws:
Exception
-
doDeregister
- Overrides:
doDeregisterin classio.netty.channel.AbstractChannel- Throws:
Exception
-
doBeginRead
- Specified by:
doBeginReadin classio.netty.channel.AbstractChannel- Throws:
Exception
-
serve
-
newLocalChannel
A factory method forVirtualChannels. Users may override it to create custom instances ofVirtualChannels.
-