public interface Channel extends Closeable
| Modifier and Type | Method and Description |
|---|---|
CloseFuture |
close(boolean immediately)
Close this resource asynchronously and return a future.
|
int |
getId() |
Window |
getLocalWindow() |
int |
getRecipient() |
Window |
getRemoteWindow() |
Session |
getSession() |
void |
handleClose() |
void |
handleData(Buffer buffer) |
void |
handleEof() |
void |
handleExtendedData(Buffer buffer) |
void |
handleFailure() |
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.
|
void |
handleRequest(Buffer buffer) |
void |
handleWindowAdjust(Buffer buffer) |
void |
init(ConnectionService service,
Session session,
int id) |
OpenFuture |
open(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
For a server channel, this method will actually open the channel
|
int getId()
int getRecipient()
Window getLocalWindow()
Window getRemoteWindow()
Session getSession()
void handleClose()
throws java.io.IOException
java.io.IOExceptionvoid handleWindowAdjust(Buffer buffer) throws java.io.IOException
java.io.IOExceptionvoid handleRequest(Buffer buffer) throws java.io.IOException
java.io.IOExceptionvoid handleData(Buffer buffer) throws java.io.IOException
java.io.IOExceptionvoid handleExtendedData(Buffer buffer) throws java.io.IOException
java.io.IOExceptionvoid handleEof()
throws java.io.IOException
java.io.IOExceptionvoid handleFailure()
throws java.io.IOException
java.io.IOExceptionCloseFuture close(boolean immediately)
Closeablevoid init(ConnectionService service, Session session, int id) throws java.io.IOException
java.io.IOExceptionOpenFuture open(int recipient, int rwsize, int rmpsize, Buffer buffer)
void handleOpenSuccess(int recipient,
int rwsize,
int rmpsize,
Buffer buffer)
throws java.io.IOException
java.io.IOExceptionvoid handleOpenFailure(Buffer buffer) throws java.io.IOException
java.io.IOExceptionCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.