Package net.spy.memcached
Interface ConnectionObserver
- All Known Implementing Classes:
MemcachedClient,TapConnectionProvider
public interface ConnectionObserver
Users of this interface will be notified when changes to the state of
connections take place.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionEstablished(SocketAddress sa, int reconnectCount) A connection has just successfully been established on the given socket.voidA connection was just lost on the given socket.
-
Method Details
-
connectionEstablished
A connection has just successfully been established on the given socket.- Parameters:
sa- the address of the node whose connection was establishedreconnectCount- the number of attempts before the connection was established
-
connectionLost
A connection was just lost on the given socket.- Parameters:
sa- the address of the node whose connection was lost
-