Package net.rubyeye.xmemcached
Interface MemcachedClientStateListener
-
public interface MemcachedClientStateListenerMemcachedClient state listener.When client startup,shutdown,connected to a memcached server or disconnected happened,client will notify the listener instance which implemented this interface.Please don't do any operations which may block in these callback methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConnected(MemcachedClient memcachedClient, java.net.InetSocketAddress inetSocketAddress)After a memcached server is connected,don't do any operations may block here.voidonDisconnected(MemcachedClient memcachedClient, java.net.InetSocketAddress inetSocketAddress)After a memcached server is disconnected,don't do any operations may block here.voidonException(MemcachedClient memcachedClient, java.lang.Throwable throwable)When exceptions occurvoidonShutDown(MemcachedClient memcachedClient)After client is shutdown.voidonStarted(MemcachedClient memcachedClient)After client is started.
-
-
-
Method Detail
-
onStarted
void onStarted(MemcachedClient memcachedClient)
After client is started.- Parameters:
memcachedClient-
-
onShutDown
void onShutDown(MemcachedClient memcachedClient)
After client is shutdown.- Parameters:
memcachedClient-
-
onConnected
void onConnected(MemcachedClient memcachedClient, java.net.InetSocketAddress inetSocketAddress)
After a memcached server is connected,don't do any operations may block here.- Parameters:
memcachedClient-inetSocketAddress-
-
onDisconnected
void onDisconnected(MemcachedClient memcachedClient, java.net.InetSocketAddress inetSocketAddress)
After a memcached server is disconnected,don't do any operations may block here.- Parameters:
memcachedClient-inetSocketAddress-
-
onException
void onException(MemcachedClient memcachedClient, java.lang.Throwable throwable)
When exceptions occur- Parameters:
memcachedClient-throwable-
-
-