Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
RejectingServer(InetSocketAddress address) |
RejectingServer(InetSocketAddress address,
long sleepTime) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
stopAndJoin()
Stops the server and joins the server thread.
|
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 RejectingServer(InetSocketAddress address)
address
- the socket address to reject requests onpublic RejectingServer(InetSocketAddress address, long sleepTime)
address
- the socket address to reject requests onsleepTime
- sleep time before close connectionCopyright © 2023. All Rights Reserved.