public abstract class AbstractServerChannel extends AbstractChannel
Modifier and Type | Field and Description |
---|---|
protected boolean |
exitStatusSent |
closeFuture, closing, DEFAULT_PACKET_SIZE, DEFAULT_WINDOW_SIZE, eof, id, localWindow, lock, log, recipient, remoteWindow, session
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) |
close, configureWindow, doClose, doWriteData, doWriteExtendedData, getId, getLocalWindow, getRecipient, getSession, handleClose, handleData, handleEof, handleExtendedData, handleFailure, handleRequest, handleWindowAdjust, init, sendEof, sendWindowAdjust
public OpenFuture open(int recipient, int rwsize, int rmpsize, Buffer buffer)
Channel
public void handleOpenSuccess(int recipient, int rwsize, int rmpsize, Buffer buffer) throws IOException
Channel
IOException
public void handleOpenFailure(Buffer buffer)
Channel
protected OpenFuture doInit(Buffer buffer)
protected void sendExitStatus(int v) throws IOException
IOException
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.