com.twitter.common.net.monitoring
Interface ConnectionMonitor<K>

All Known Implementing Classes:
TrafficMonitor

public interface ConnectionMonitor<K>

Monitors active connections between two hosts..


Method Summary
 void connected(K connectionKey)
          Instructs the monitor that a connection was established.
 void released(K connectionKey)
          Informs the monitor that a connection was released.
 

Method Detail

connected

void connected(K connectionKey)
Instructs the monitor that a connection was established.

Parameters:
connectionKey - Key for the host that a connection was established with.

released

void released(K connectionKey)
Informs the monitor that a connection was released.

Parameters:
connectionKey - Key for the host that a connection was released for.