net.spy.memcached.auth
Class AuthThreadMonitor

java.lang.Object
  extended by net.spy.memcached.compat.SpyObject
      extended by net.spy.memcached.auth.AuthThreadMonitor

public class AuthThreadMonitor
extends SpyObject

This will ensure no more than one AuthThread will exist for a given MemcachedNode.


Constructor Summary
AuthThreadMonitor()
           
 
Method Summary
 void authConnection(MemcachedConnection conn, OperationFactory opFact, AuthDescriptor authDescriptor, MemcachedNode node)
          Authenticate a new connection.
 
Methods inherited from class net.spy.memcached.compat.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthThreadMonitor

public AuthThreadMonitor()
Method Detail

authConnection

public void authConnection(MemcachedConnection conn,
                           OperationFactory opFact,
                           AuthDescriptor authDescriptor,
                           MemcachedNode node)
Authenticate a new connection. This is typically used by a MemcachedNode in order to authenticate a connection right after it has been established. If an old, but not yet completed authentication exists this will stop it in order to create a new authentication attempt.

Parameters:
conn -
opFact -
authDescriptor -
node -