net.rubyeye.xmemcached.impl
Class MemcachedClientStateListenerAdapter

java.lang.Object
  extended by net.rubyeye.xmemcached.impl.MemcachedClientStateListenerAdapter
All Implemented Interfaces:
ControllerStateListener

public class MemcachedClientStateListenerAdapter
extends java.lang.Object
implements ControllerStateListener

Adapte MemcachedClientStateListener to yanf4j's ControllStateListener

Author:
dennis

Constructor Summary
MemcachedClientStateListenerAdapter(MemcachedClientStateListener memcachedClientStateListener, MemcachedClient memcachedClient)
           
 
Method Summary
 MemcachedClient getMemcachedClient()
           
 MemcachedClientStateListener getMemcachedClientStateListener()
           
 void onAllSessionClosed(Controller acceptor)
          When all connections are closed
 void onException(Controller acceptor, java.lang.Throwable t)
           
 void onReady(Controller acceptor)
          When controller is ready
 void onStarted(Controller acceptor)
          When controller is started
 void onStopped(Controller acceptor)
          When controller has been stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcachedClientStateListenerAdapter

public MemcachedClientStateListenerAdapter(MemcachedClientStateListener memcachedClientStateListener,
                                           MemcachedClient memcachedClient)
Method Detail

getMemcachedClientStateListener

public final MemcachedClientStateListener getMemcachedClientStateListener()

getMemcachedClient

public final MemcachedClient getMemcachedClient()

onAllSessionClosed

public final void onAllSessionClosed(Controller acceptor)
Description copied from interface: ControllerStateListener
When all connections are closed

Specified by:
onAllSessionClosed in interface ControllerStateListener

onException

public final void onException(Controller acceptor,
                              java.lang.Throwable t)
Specified by:
onException in interface ControllerStateListener

onReady

public final void onReady(Controller acceptor)
Description copied from interface: ControllerStateListener
When controller is ready

Specified by:
onReady in interface ControllerStateListener

onStarted

public final void onStarted(Controller acceptor)
Description copied from interface: ControllerStateListener
When controller is started

Specified by:
onStarted in interface ControllerStateListener

onStopped

public final void onStopped(Controller acceptor)
Description copied from interface: ControllerStateListener
When controller has been stopped

Specified by:
onStopped in interface ControllerStateListener


Copyright © 2011. All Rights Reserved.