Package net.spy.memcached.auth
Class AuthThread
- java.lang.Object
-
- java.lang.Thread
-
- net.spy.memcached.compat.SpyThread
-
- net.spy.memcached.auth.AuthThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class AuthThread extends SpyThread
A thread that does SASL authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTH_ROUNDTRIP_THRESHOLD
If a SASL step takes longer than this period in milliseconds, a warning will be issued instead of a debug message.static int
AUTH_TOTAL_THRESHOLD
If the total AUTH steps take longer than this period in milliseconds, a warning will be issued instead of a debug message.private AuthDescriptor
authDescriptor
private MemcachedConnection
conn
static java.lang.String
MECH_SEPARATOR
private MemcachedNode
node
private OperationFactory
opFact
-
Constructor Summary
Constructors Constructor Description AuthThread(MemcachedConnection c, OperationFactory o, AuthDescriptor a, MemcachedNode n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Operation
buildOperation(OperationStatus st, OperationCallback cb, java.lang.String[] supportedMechs)
protected java.lang.String[]
listSupportedSASLMechanisms(java.util.concurrent.atomic.AtomicBoolean done)
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
AUTH_ROUNDTRIP_THRESHOLD
public static final int AUTH_ROUNDTRIP_THRESHOLD
If a SASL step takes longer than this period in milliseconds, a warning will be issued instead of a debug message.- See Also:
- Constant Field Values
-
AUTH_TOTAL_THRESHOLD
public static final int AUTH_TOTAL_THRESHOLD
If the total AUTH steps take longer than this period in milliseconds, a warning will be issued instead of a debug message.- See Also:
- Constant Field Values
-
MECH_SEPARATOR
public static final java.lang.String MECH_SEPARATOR
- See Also:
- Constant Field Values
-
conn
private final MemcachedConnection conn
-
authDescriptor
private final AuthDescriptor authDescriptor
-
opFact
private final OperationFactory opFact
-
node
private final MemcachedNode node
-
-
Constructor Detail
-
AuthThread
public AuthThread(MemcachedConnection c, OperationFactory o, AuthDescriptor a, MemcachedNode n)
-
-
Method Detail
-
listSupportedSASLMechanisms
protected java.lang.String[] listSupportedSASLMechanisms(java.util.concurrent.atomic.AtomicBoolean done)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
buildOperation
private Operation buildOperation(OperationStatus st, OperationCallback cb, java.lang.String[] supportedMechs)
-
-