net.spy.memcached.ConnectionObserver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spymemcached Show documentation
Show all versions of spymemcached Show documentation
A simple, asynchronous, single-threaded Memcached client written in java.
The newest version!
package net.spy.memcached;
import java.net.SocketAddress;
/**
* Users of this interface will be notified when changes to the state of
* connections take place.
*/
public interface ConnectionObserver {
/**
* A connection has just successfully been established on the given socket.
*
* @param sa the address of the node whose connection was established
* @param reconnectCount the number of attempts before the connection was
* established
*/
void connectionEstablished(SocketAddress sa, int reconnectCount);
/**
* A connection was just lost on the given socket.
*
* @param sa the address of the node whose connection was lost
*/
void connectionLost(SocketAddress sa);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy