Package net.rubyeye.xmemcached.auth
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 java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthInfo
private final CommandFactory
static final byte[]
(package private) static final org.slf4j.Logger
private MemcachedTCPSession
private SaslClient
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionAuthTask
(AuthInfo authInfo, CommandFactory commandFactory, MemcachedTCPSession memcachedTCPSession) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
doAuth()
void
run()
private Command
private void
waitCommand
(Command cmd, AtomicBoolean done) 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, 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
public void run() -
doAuth
private void doAuth() -
destroySaslClient
private void destroySaslClient() -
startAuth
- Throws:
SaslException
-
waitCommand
-