public abstract class AbstractServerChannel extends AbstractChannel
AbstractChannel.GracefulChannelCloseable, AbstractChannel.GracefulStateCloseableUtils.AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exitStatusSent |
DEFAULT_CHANNEL_CLOSE_TIMEOUT, DEFAULT_PACKET_SIZE, DEFAULT_WINDOW_SIZE, eof, executor, gracefulFuture, gracefulState, handlers, id, localWindow, recipient, remoteWindow, RESPONSE_BUFFER_GROWTH_FACTOR, service, session, shutdownExecutorcloseFuture, lock, statelog| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServerChannel() |
protected |
AbstractServerChannel(String discriminator) |
| Modifier and Type | Method and Description |
|---|---|
protected OpenFuture |
doInit(Buffer buffer) |
void |
handleOpenFailure(Buffer buffer)
For a client channel, this method will be called internally by the
session when the server has rejected this channel opening.
|
void |
handleOpenSuccess(int recipient,
int rwSize,
int packetSize,
Buffer buffer)
For a client channel, this method will be called internally by the
session when the confirmation has been received.
|
OpenFuture |
open(int recipient,
int rwSize,
int packetSize,
Buffer buffer)
For a server channel, this method will actually open the channel
|
protected void |
sendExitStatus(int v) |
addRequestHandler, configureWindow, doCloseImmediately, doWriteData, doWriteExtendedData, getExecutorService, getId, getInnerCloseable, getLocalWindow, getRecipient, getRemoteWindow, getSession, handleClose, handleData, handleEof, handleExtendedData, handleFailure, handleRequest, handleWindowAdjust, init, isEofSignalled, isShutdownOnExit, notifyStateChanged, sendEof, sendResponse, sendWindowAdjust, setEofSignalled, setExecutorService, setShutdownOnExit, toString, writePacketdoCloseGracefullybuilder, close, isClosed, isClosing, preCloseclose, isOpenprotected AbstractServerChannel()
protected AbstractServerChannel(String discriminator)
public OpenFuture open(int recipient, int rwSize, int packetSize, Buffer buffer)
Channelrecipient - Recipient identifierrwSize - Read/Write window sizepacketSize - Preferred maximum packet sizebuffer - Incoming Buffer that triggered the call.
Note: the buffer's read position is exactly
after the information that read to this call
was decodedOpenFuture for the channel open requestpublic void handleOpenSuccess(int recipient,
int rwSize,
int packetSize,
Buffer buffer)
throws IOException
Channelrecipient - Recipient identifierrwSize - Read/Write window sizepacketSize - Preferred maximum packet sizebuffer - Incoming Buffer that triggered the call.
Note: the buffer's read position is exactly
after the information that read to this call
was decodedIOException - If failed to handle the successpublic void handleOpenFailure(Buffer buffer)
Channelbuffer - Incoming Buffer that triggered the call.
Note: the buffer's read position is exactly
after the information that read to this call
was decodedprotected OpenFuture doInit(Buffer buffer)
protected void sendExitStatus(int v)
throws IOException
IOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.