Interface SwitchConnectionHandler
- All Known Subinterfaces:
ConnectionManager
- All Known Implementing Classes:
ConnectionManagerImpl
public interface SwitchConnectionHandler
Handler for a swictch connection.
- Author:
- mirehak, michal.polkorab
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(InetAddress switchAddress) Invoked to determine if a switch connection should be accepted.void
onSwitchConnected
(ConnectionAdapter connection) Invoked when a switch connects.
-
Method Details
-
onSwitchConnected
Invoked when a switch connects.- Parameters:
connection
- to switch proving message sending/receiving, connection management
-
accept
Invoked to determine if a switch connection should be accepted.- Parameters:
switchAddress
- address of incoming connection (address + port)- Returns:
- true, if connection from switch having given address shell be accepted; false otherwise
-