public abstract class AbstractServerChannel extends AbstractChannel
AbstractChannel.GracefulChannelCloseable, AbstractChannel.GracefulStateCloseableUtils.AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exitStatusSent |
DEFAULT_PACKET_SIZE, DEFAULT_WINDOW_SIZE, eof, gracefulFuture, gracefulState, handlers, id, localWindow, recipient, remoteWindow, service, sessioncloseFuture, lock, log, state| Constructor and Description |
|---|
AbstractServerChannel() |
| 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 rmpsize,
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 rmpsize,
Buffer buffer)
For a server channel, this method will actually open the channel
|
protected void |
sendExitStatus(int v) |
addRequestHandler, configureWindow, doCloseImmediately, doWriteData, doWriteExtendedData, getId, getInnerCloseable, getLocalWindow, getRecipient, getRemoteWindow, getSession, handleClose, handleData, handleEof, handleExtendedData, handleFailure, handleRequest, handleWindowAdjust, init, notifyStateChanged, sendEof, sendWindowAdjust, toString, writePacketdoCloseGracefullybuilder, close, isClosed, isClosing, preClosepublic OpenFuture open(int recipient, int rwsize, int rmpsize, Buffer buffer)
Channelpublic void handleOpenSuccess(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
throws IOException
ChannelIOExceptionpublic void handleOpenFailure(Buffer buffer)
Channelprotected OpenFuture doInit(Buffer buffer)
protected void sendExitStatus(int v)
throws IOException
IOExceptionCopyright © 2008–2014 The Apache Software Foundation. All rights reserved.