Package net.rubyeye.xmemcached
Interface MemcachedClientStateListener
public interface MemcachedClientStateListener
MemcachedClient 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
Modifier and TypeMethodDescriptionvoid
onConnected
(MemcachedClient memcachedClient, InetSocketAddress inetSocketAddress) After a memcached server is connected,don't do any operations may block here.void
onDisconnected
(MemcachedClient memcachedClient, InetSocketAddress inetSocketAddress) After a memcached server is disconnected,don't do any operations may block here.void
onException
(MemcachedClient memcachedClient, Throwable throwable) When exceptions occurvoid
onShutDown
(MemcachedClient memcachedClient) After client is shutdown.void
onStarted
(MemcachedClient memcachedClient) After client is started.
-
Method Details
-
onStarted
After client is started.- Parameters:
memcachedClient
-
-
onShutDown
After client is shutdown.- Parameters:
memcachedClient
-
-
onConnected
After a memcached server is connected,don't do any operations may block here.- Parameters:
memcachedClient
-inetSocketAddress
-
-
onDisconnected
After a memcached server is disconnected,don't do any operations may block here.- Parameters:
memcachedClient
-inetSocketAddress
-
-
onException
When exceptions occur- Parameters:
memcachedClient
-throwable
-
-