Package org.apache.sshd.common.forward
Interface PortForwardingEventListenerManager
-
- All Known Subinterfaces:
ClientFactoryManager,ClientSession,ConnectionService,FactoryManager,Forwarder,ServerFactoryManager,ServerSession,Session
- All Known Implementing Classes:
AbstractClientSession,AbstractConnectionService,AbstractConnectionServiceFactory,AbstractFactoryManager,AbstractServerSession,AbstractSession,ClientConnectionService,ClientConnectionServiceFactory,ClientSessionImpl,DefaultForwarder,DefaultForwarderFactory,ServerConnectionService,ServerConnectionServiceFactory,ServerSessionImpl,SessionHelper,SshClient,SshServer
public interface PortForwardingEventListenerManagerMarker interface for classes that allow to add/remove port forwarding listeners. Note: if adding/removing listeners while tunnels are being established and/or torn down there are no guarantees as to the order of the calls to the recently added/removed listener's methods in the interim. The correct order is guaranteed only as of the next tunnel after the listener has been added/removed.- Author:
- Apache MINA SSHD Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPortForwardingEventListener(PortForwardingEventListener listener)Add a port forwarding listenerPortForwardingEventListenergetPortForwardingEventListenerProxy()voidremovePortForwardingEventListener(PortForwardingEventListener listener)Remove a port forwarding listener
-
-
-
Method Detail
-
addPortForwardingEventListener
void addPortForwardingEventListener(PortForwardingEventListener listener)
Add a port forwarding listener- Parameters:
listener- ThePortForwardingEventListenerto add - nevernull
-
removePortForwardingEventListener
void removePortForwardingEventListener(PortForwardingEventListener listener)
Remove a port forwarding listener- Parameters:
listener- ThePortForwardingEventListenerto remove - ignored ifnull
-
getPortForwardingEventListenerProxy
PortForwardingEventListener getPortForwardingEventListenerProxy()
- Returns:
- A proxy listener representing all the currently registered listener through this manager
-
-