Package net.rubyeye.xmemcached.impl
Class MemcachedClientStateListenerAdapter
- java.lang.Object
-
- net.rubyeye.xmemcached.impl.MemcachedClientStateListenerAdapter
-
- All Implemented Interfaces:
ControllerStateListener
public class MemcachedClientStateListenerAdapter extends java.lang.Object implements ControllerStateListener
Adapte MemcachedClientStateListener to yanf4j's ControllStateListener
-
-
Field Summary
Fields Modifier and Type Field Description private MemcachedClient
memcachedClient
private MemcachedClientStateListener
memcachedClientStateListener
-
Constructor Summary
Constructors Constructor Description MemcachedClientStateListenerAdapter(MemcachedClientStateListener memcachedClientStateListener, MemcachedClient memcachedClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemcachedClient
getMemcachedClient()
MemcachedClientStateListener
getMemcachedClientStateListener()
void
onAllSessionClosed(Controller acceptor)
When all connections are closedvoid
onException(Controller acceptor, java.lang.Throwable t)
void
onReady(Controller acceptor)
When controller is readyvoid
onStarted(Controller acceptor)
When controller is startedvoid
onStopped(Controller acceptor)
When controller has been stopped
-
-
-
Field Detail
-
memcachedClientStateListener
private final MemcachedClientStateListener memcachedClientStateListener
-
memcachedClient
private final MemcachedClient memcachedClient
-
-
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 interfaceControllerStateListener
-
onException
public final void onException(Controller acceptor, java.lang.Throwable t)
- Specified by:
onException
in interfaceControllerStateListener
-
onReady
public final void onReady(Controller acceptor)
Description copied from interface:ControllerStateListener
When controller is ready- Specified by:
onReady
in interfaceControllerStateListener
-
onStarted
public final void onStarted(Controller acceptor)
Description copied from interface:ControllerStateListener
When controller is started- Specified by:
onStarted
in interfaceControllerStateListener
-
onStopped
public final void onStopped(Controller acceptor)
Description copied from interface:ControllerStateListener
When controller has been stopped- Specified by:
onStopped
in interfaceControllerStateListener
-
-