Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
boolean |
add(String key,
OpenFileHandle handle)
Add a open file handle into this collection.
|
OpenFileHandle |
find(String key)
Find an open file handle by its key.
|
OpenFileHandle |
findAndVerify(String key,
String uuid)
Find an open file handle by its key, and verify against its uuid.
|
void |
remove(String key)
Remove a specified key.
|
void |
run() |
void |
shutdown()
Wakeup the current thread and ask it to stop.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public boolean add(String key, OpenFileHandle handle)
key
- handle
- @Nullable public OpenFileHandle find(String key)
key
- @Nullable public OpenFileHandle findAndVerify(String key, String uuid)
key
- uuid
- the uuid of open file from client sidepublic void remove(String key)
key
- the key to removepublic void shutdown()
Copyright © 2023. All Rights Reserved.