public class VirtualServerChannel
extends io.netty.channel.AbstractServerChannel
ServerChannel for the local transport which allows in VM communication.
This is a bit different than a LocalServerChannel in regular Netty
as it does not require a client event loop and exposes the client inbound queue directly.| Constructor and Description |
|---|
VirtualServerChannel() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.ChannelConfig |
config() |
protected void |
doBeginRead() |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected void |
doDeregister() |
protected void |
doRegister() |
boolean |
isActive() |
protected boolean |
isCompatible(io.netty.channel.EventLoop loop) |
boolean |
isOpen() |
VirtualAddress |
localAddress() |
protected SocketAddress |
localAddress0() |
protected VirtualChannel |
newLocalChannel(VirtualClientConnection peer)
A factory method for
VirtualChannels. |
VirtualAddress |
remoteAddress() |
(package private) VirtualChannel |
serve(VirtualClientConnection peer) |
doDisconnect, doWrite, filterOutboundMessage, metadata, newUnsafe, remoteAddress0alloc, 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, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, unsafe, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isRegistered, isWritable, parent, pipeline, read, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic io.netty.channel.ChannelConfig config()
public VirtualAddress localAddress()
localAddress in interface io.netty.channel.ChannellocalAddress in class io.netty.channel.AbstractChannelpublic VirtualAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in class io.netty.channel.AbstractServerChannelpublic boolean isOpen()
public boolean isActive()
protected boolean isCompatible(io.netty.channel.EventLoop loop)
isCompatible in class io.netty.channel.AbstractChannelprotected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected void doRegister()
throws Exception
doRegister in class io.netty.channel.AbstractChannelExceptionprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionprotected void doDeregister()
throws Exception
doDeregister in class io.netty.channel.AbstractChannelExceptionprotected void doBeginRead()
throws Exception
doBeginRead in class io.netty.channel.AbstractChannelExceptionVirtualChannel serve(VirtualClientConnection peer)
protected VirtualChannel newLocalChannel(VirtualClientConnection peer)
VirtualChannels. Users may override it
to create custom instances of VirtualChannels.Copyright © 2021 JBoss by Red Hat. All rights reserved.