public abstract class AbstractServerChannel extends AbstractChannel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exitStatusSent |
CLOSE_RECV, CLOSE_SENT, DEFAULT_PACKET_SIZE, DEFAULT_WINDOW_SIZE, eof, gracefulState, handlers, id, localWindow, recipient, remoteWindow, service, sessionCLOSED, closeFuture, GRACEFUL, IMMEDIATE, lock, log, OPENED, 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, doWriteData, doWriteExtendedData, getGracefulCloseable, getId, getInnerCloseable, getLocalWindow, getRecipient, getRemoteWindow, getSession, handleClose, handleData, handleEof, handleExtendedData, handleFailure, handleRequest, handleWindowAdjust, init, notifyStateChanged, postClose, sendEof, sendWindowAdjust, toString, writePacketdoCloseGracefully, doCloseImmediatelyclosepublic OpenFuture open(int recipient, int rwsize, int rmpsize, Buffer buffer)
Channelpublic void handleOpenSuccess(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
throws java.io.IOException
Channeljava.io.IOExceptionpublic void handleOpenFailure(Buffer buffer)
Channelprotected OpenFuture doInit(Buffer buffer)
protected void sendExitStatus(int v)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.