Class AuthTask
java.lang.Object
java.lang.Thread
net.rubyeye.xmemcached.auth.AuthTask
- All Implemented Interfaces:
Runnable
Authentication task
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthInfoprivate final CommandFactorystatic final byte[](package private) static final org.slf4j.Loggerprivate MemcachedTCPSessionprivate SaslClientFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAuthTask(AuthInfo authInfo, CommandFactory commandFactory, MemcachedTCPSession memcachedTCPSession) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voiddoAuth()voidrun()private Commandprivate voidwaitCommand(Command cmd, AtomicBoolean done) Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
authInfo
-
commandFactory
-
memcachedTCPSession
-
EMPTY_BYTES
public static final byte[] EMPTY_BYTES -
log
static final org.slf4j.Logger log -
saslClient
-
-
Constructor Details
-
AuthTask
public AuthTask(AuthInfo authInfo, CommandFactory commandFactory, MemcachedTCPSession memcachedTCPSession)
-
-
Method Details
-
run
-
doAuth
private void doAuth() -
destroySaslClient
private void destroySaslClient() -
startAuth
- Throws:
SaslException
-
waitCommand
-