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 PortForwardingEventListenerManager
Marker 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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a port forwarding listenervoidRemove a port forwarding listener
-
Method Details
-
addPortForwardingEventListener
Add a port forwarding listener- Parameters:
listener- ThePortForwardingEventListenerto add - nevernull
-
removePortForwardingEventListener
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
-