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