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 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 -