| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default void | |
| public LocalWindow | |
| public long | |
| public RemoteWindow | |
| public List | |
| public void | handleChannelRegistrationResult(ConnectionService
The service, Session ConnectionService through which the channel is registeredThe session, long Session associated with the channelThe locally assigned channel identifier (UINT32 represented as a id, boolean long)Whether registration was successful or not registered)Invoked after being successfully registered by the connection service - should throw a |
| public void | handleChannelUnregistration(ConnectionService
The service)ConnectionService through which the channel is unregisteredCalled by the connection service to inform the channel that it has bee unregistered. |
| public void | |
| public void | handleData(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersInvoked when |
| public void | |
| public void | handleExtendedData(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersInvoked when |
| public void | |
| public void | handleOpenFailure(Buffer
Incoming buffer)Buffer that triggered the callNote the buffer's read position is exactly after the information that read to this call was decoded For a client channel, this method will be called internally by the session when the server has rejected this channel opening. |
| public void | handleOpenSuccess(long
Recipient identifier (UINT32 represented as a recipient, long long)Read/Write window size ( rwSize, long uint32)Preferred maximum packet size ( packetSize, Buffer uint32)Incoming buffer)Buffer that triggered the callNote the buffer's read position is exactly after the information that read to this call was decoded For a client channel, this method will be called internally by the session when the confirmation has been received. |
| public void | handleRequest(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersInvoked when |
| public void | |
| public void | handleWindowAdjust(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersInvoked when |
| public void | init(ConnectionService
The service, Session ConnectionService through which the channel is initializedThe session, long Session associated with the channelThe locally assigned channel identifier (UINT32 represented as a id)long)Invoked when the local channel is initial created |
| public boolean | |
| public boolean | |
| public OpenFuture | Returns: AnOpenFuture for the channel open requestRecipient identifier (UINT32 represented as a recipient, long long)Read/Write window size ( rwSize, long uint32)Preferred maximum packet size ( packetSize, Buffer uint32)Incoming buffer)Buffer that triggered the callNote the buffer's read position is exactly after the information that read to this call was decoded For a server channel, this method will actually open the channel |
| public void | |
| public default void | |
| public default <T> T | resolveAttribute(AttributeRepository.
The key of the attribute; must not be keynull.Overrides default org. Attempts to resolve the associated value by going up the store's hierarchy (if any) |
| public static < The generic attribute type T> T | Returns: Associated value -null if not foundThe channel, AttributeRepository.Channel - ignored if nullThe attribute key - never keynullAttempts to use the channel attribute, if not found then tries the session |
| public IoWriteFuture | Returns: AnIoWriteFuture that can be used to check when the packet has actually been sentthe buffer to encode and send buffer)Note the buffer must not be touched until the returned write future is completed. Encode and send the given buffer Note for session packets the buffer has to have 5 bytes free at the beginning to allow the encoding to take place. |
| CHANNEL_EXEC | back to summary |
|---|---|
| public static final String CHANNEL_EXEC | |
| CHANNEL_SHELL | back to summary |
|---|---|
| public static final String CHANNEL_SHELL | |
| CHANNEL_SUBSYSTEM | back to summary |
|---|---|
| public static final String CHANNEL_SUBSYSTEM | |
| addRequestHandler | back to summary |
|---|---|
| public void addRequestHandler(RequestHandler<Channel> handler) | |
| addRequestHandlers | back to summary |
|---|---|
| public default void addRequestHandlers(Collection<? extends RequestHandler<Channel>> handlers) | |
| getLocalWindow | back to summary |
|---|---|
| public LocalWindow getLocalWindow() | |
| getRecipient | back to summary |
|---|---|
public long getRecipient()
| |
| getRemoteWindow | back to summary |
|---|---|
| public RemoteWindow getRemoteWindow() | |
| getRequestHandlers | back to summary |
|---|---|
| public List | |
| handleChannelRegistrationResult | back to summary |
|---|---|
| public void handleChannelRegistrationResult(ConnectionService service, Session session, long id, boolean registered) Invoked after being successfully registered by the connection service - should throw a
| |
| handleChannelUnregistration | back to summary |
|---|---|
| public void handleChannelUnregistration(ConnectionService service) Called by the connection service to inform the channel that it has bee unregistered.
| |
| handleClose | back to summary |
|---|---|
| public void handleClose() throws IOException Invoked when
| |
| handleData | back to summary |
|---|---|
| public void handleData(Buffer buffer) throws IOException Invoked when
| |
| handleEof | back to summary |
|---|---|
| public void handleEof() throws IOException Invoked when
| |
| handleExtendedData | back to summary |
|---|---|
| public void handleExtendedData(Buffer buffer) throws IOException Invoked when
| |
| handleFailure | back to summary |
|---|---|
| public void handleFailure() throws IOException Invoked when
| |
| handleOpenFailure | back to summary |
|---|---|
| public void handleOpenFailure(Buffer buffer) throws IOException For a client channel, this method will be called internally by the session when the server has rejected this channel opening.
| |
| handleOpenSuccess | back to summary |
|---|---|
| public void handleOpenSuccess(long recipient, long rwSize, long packetSize, Buffer buffer) throws IOException For a client channel, this method will be called internally by the session when the confirmation has been received.
| |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(Buffer buffer) throws IOException Invoked when
| |
| handleSuccess | back to summary |
|---|---|
| public void handleSuccess() throws IOException Invoked when
| |
| handleWindowAdjust | back to summary |
|---|---|
| public void handleWindowAdjust(Buffer buffer) throws IOException Invoked when
| |
| init | back to summary |
|---|---|
| public void init(ConnectionService service, Session session, long id) throws IOException Invoked when the local channel is initial created
| |
| isEofSignalled | back to summary |
|---|---|
public boolean isEofSignalled()
| |
| isInitialized | back to summary |
|---|---|
public boolean isInitialized()
| |
| open | back to summary |
|---|---|
| public OpenFuture open(long recipient, long rwSize, long packetSize, Buffer buffer) For a server channel, this method will actually open the channel
| |
| removeRequestHandler | back to summary |
|---|---|
| public void removeRequestHandler(RequestHandler<Channel> handler) | |
| removeRequestHandlers | back to summary |
|---|---|
| public default void removeRequestHandlers(Collection<? extends RequestHandler<Channel>> handlers) | |
| resolveAttribute | back to summary |
|---|---|
| public default <T> T resolveAttribute(AttributeRepository. Overrides default org. Doc from org. Attempts to resolve the associated value by going up the store's hierarchy (if any)
| |
| resolveAttribute | back to summary |
|---|---|
| public static <T> T resolveAttribute(Channel channel, AttributeRepository. Attempts to use the channel attribute, if not found then tries the session
| |
| writePacket | back to summary |
|---|---|
| public IoWriteFuture writePacket(Buffer buffer) throws IOException Encode and send the given buffer Note for session packets the buffer has to have 5 bytes free at the beginning to allow the encoding to take place. Also, the write position of the buffer has to be set to the position of the last byte to write.
| |