Top Description Fields Methods
org.apache.sshd.common.channel.throttle

public Interface ChannelStreamWriterResolver

Known Direct Subinterfaces
org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolverManager
Annotations
@FunctionalInterface
Imports
org.apache.sshd.common.channel.Channel

A special mechanism that enables users to intervene in the way packets are sent from ChannelOutputStream-s - e.g., by introducing throttling
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final ChannelStreamWriterResolver
NONE

An identity resolver - i.e., no special intervention - simply use the channel itself

Method Summary

Modifier and TypeMethod and Description
public ChannelStreamWriter

Returns:

The ChannelStreamWriter to use - Note: if the return value is not a Channel then it will be closed when the stream is closed
resolveChannelStreamWriter
(Channel
The original Channel
channel
,
byte
The SSH_MSG_CHANNEL_DATA or SSH_MSG_CHANNEL_EXTENDED_DATA command that triggered the resolution
cmd
)

Field Detail

NONEback to summary
public static final ChannelStreamWriterResolver NONE

An identity resolver - i.e., no special intervention - simply use the channel itself

Method Detail

resolveChannelStreamWriterback to summary
public ChannelStreamWriter resolveChannelStreamWriter(Channel channel, byte cmd)
Parameters
channel:Channel

The original Channel

cmd:byte

The SSH_MSG_CHANNEL_DATA or SSH_MSG_CHANNEL_EXTENDED_DATA command that triggered the resolution

Returns:ChannelStreamWriter

The ChannelStreamWriter to use - Note: if the return value is not a Channel then it will be closed when the stream is closed