@FunctionalInterface public interface ChannelStreamPacketWriterResolver
ChannelOutputStream
-s - e.g., by introducing throttlingModifier and Type | Field and Description |
---|---|
static ChannelStreamPacketWriterResolver |
NONE
An identity resolver - i.e., no special intervention - simply use the channel itself
|
Modifier and Type | Method and Description |
---|---|
PacketWriter |
resolveChannelStreamPacketWriter(Channel channel,
byte cmd) |
static final ChannelStreamPacketWriterResolver NONE
PacketWriter resolveChannelStreamPacketWriter(Channel channel, byte cmd)
channel
- The original Channel
cmd
- The SSH_MSG_CHANNEL_DATA
or SSH_MSG_CHANNEL_EXTENDED_DATA
command that triggered the resolutionPacketWriter
to use - Note: if the return value is
not a Channel
then it will be closed when the stream is closedCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.