Interface ChannelStreamWriterResolver
- All Known Subinterfaces:
Channel
,ChannelStreamWriterResolverManager
,ClientChannel
,ClientFactoryManager
,ClientSession
,FactoryManager
,ServerChannel
,ServerFactoryManager
,ServerSession
,Session
- All Known Implementing Classes:
AbstractChannel
,AbstractClientChannel
,AbstractClientSession
,AbstractFactoryManager
,AbstractServerChannel
,AbstractServerSession
,AbstractSession
,AgentForwardedChannel
,AgentForwardedChannel
,ChannelAgentForwarding
,ChannelAgentForwarding
,ChannelDirectTcpip
,ChannelExec
,ChannelForwardedX11
,ChannelSession
,ChannelSession
,ChannelShell
,ChannelSubsystem
,ClientSessionImpl
,PtyCapableChannelSession
,ServerSessionImpl
,SessionHelper
,SshClient
,SshServer
,TcpipClientChannel
,TcpipServerChannel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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 TypeFieldDescriptionstatic final ChannelStreamWriterResolver
An identity resolver - i.e., no special intervention - simply use the channel itself -
Method Summary
-
Field Details
-
NONE
An identity resolver - i.e., no special intervention - simply use the channel itself
-
-
Method Details
-
resolveChannelStreamWriter
- Parameters:
channel
- The originalChannel
cmd
- TheSSH_MSG_CHANNEL_DATA
orSSH_MSG_CHANNEL_EXTENDED_DATA
command that triggered the resolution- Returns:
- The
ChannelStreamWriter
to use - Note: if the return value is not aChannel
then it will be closed when the stream is closed
-