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
 void connectionEstablished(java.net.SocketAddress sa, int reconnectCount)
          A connection has just successfully been established on the given socket.
 void connectionLost(java.net.SocketAddress sa)
          A connection was just lost on the given socket.
 

Method Detail

connectionEstablished

void connectionEstablished(java.net.SocketAddress sa,
                           int reconnectCount)
A connection has just successfully been established on the given socket.

Parameters:
sa - the address of the node whose connection was established
reconnectCount - the number of attempts before the connection was established

connectionLost

void connectionLost(java.net.SocketAddress sa)
A connection was just lost on the given socket.

Parameters:
sa - the address of the node whose connection was lost


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.