ServerChannel for the local transport which allows in VM communication.
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final ChannelConfig | |
| private final Queue | |
| private volatile LocalAddress | |
| private final Runnable | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ChannelConfig | |
| protected void | doBeginRead()
Implements abstract io. |
| protected void | doBind(SocketAddress localAddress)
Implements abstract io. Channel to the SocketAddress
|
| protected void | |
| protected void | doDeregister()
Overrides io. Channel from its EventLoop.
|
| protected void | doRegister()
Overrides io. Channel is registered with its EventLoop as part of the register process.
|
| public boolean | isActive()
Implements io. true if the Channel is active and so connected.
|
| protected boolean | isCompatible(EventLoop loop)
Implements abstract io. true if the given EventLoop is compatible with this instance.
|
| public boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| public LocalAddress | localAddress()
Overrides io. Implements io. |
| protected SocketAddress | localAddress0()
Implements abstract io. SocketAddress which is bound locally.
|
| protected LocalChannel | |
| private void | |
| public LocalAddress | remoteAddress()
Overrides io. Implements io. |
| pack-priv LocalChannel | |
| private void |
| acceptInProgress | back to summary |
|---|---|
| private volatile boolean acceptInProgress | |
| config | back to summary |
|---|---|
| private final ChannelConfig config | |
| inboundBuffer | back to summary |
|---|---|
| private final Queue<Object> inboundBuffer | |
| localAddress | back to summary |
|---|---|
| private volatile LocalAddress localAddress | |
| shutdownHook | back to summary |
|---|---|
| private final Runnable shutdownHook | |
| state | back to summary |
|---|---|
| private volatile int state | |
| LocalServerChannel | back to summary |
|---|---|
| public LocalServerChannel() | |
| config | back to summary |
|---|---|
| public ChannelConfig config() Implements io. Doc from io. Returns the configuration of this channel.
| |
| doBeginRead | back to summary |
|---|---|
| protected void doBeginRead() throws Exception Implements abstract io. Doc from io. Schedule a read operation.
| |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress localAddress) throws Exception Implements abstract io. Doc from io. Bind the
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws Exception Implements abstract io. Doc from io. Close the
| |
| doDeregister | back to summary |
|---|---|
| protected void doDeregister() throws Exception Overrides io. Doc from io. Deregister the
| |
| doRegister | back to summary |
|---|---|
| protected void doRegister() throws Exception Overrides io. Doc from io. Is called after the
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements io. Doc from io. Return
| |
| isCompatible | back to summary |
|---|---|
| protected boolean isCompatible(EventLoop loop) Implements abstract io. Doc from io. Return
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from io. Returns
| |
| localAddress | back to summary |
|---|---|
| public LocalAddress localAddress() Overrides io. Implements io. Doc from io. Returns the local address where this channel is bound to. The returned
| |
| localAddress0 | back to summary |
|---|---|
| protected SocketAddress localAddress0() Implements abstract io. Doc from io. Returns the
| |
| newLocalChannel | back to summary |
|---|---|
| protected LocalChannel newLocalChannel(LocalChannel peer) A factory method for | |
| readInbound | back to summary |
|---|---|
| private void readInbound() | |
| remoteAddress | back to summary |
|---|---|
| public LocalAddress remoteAddress() Overrides io. Implements io. Doc from io. Returns the remote address where this channel is connected to. The
returned
| |
| serve | back to summary |
|---|---|
| pack-priv LocalChannel serve(final LocalChannel peer) | |
| serve0 | back to summary |
|---|---|
| private void serve0(final LocalChannel child) | |