public class Acceptor extends ElectionAgentThread
| Modifier and Type | Class and Description |
|---|---|
static interface |
Acceptor.SuggestionGenerator |
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
channelQueue, formatter, logger, protocolenvImplMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Acceptor(Protocol protocol,
ElectionsConfig config,
Acceptor.SuggestionGenerator suggestionGenerator)
Creates an Acceptor
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
The Acceptor thread body.
|
getLogger, initiateSoftShutdown, shutdowncleanup, getSavedShutdownException, getTotalCpuTime, getTotalUserTime, handleUncaughtException, isShutdown, saveShutdownException, shutdownDone, shutdownThreadactiveCount, 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, yieldpublic static final String SERVICE_NAME
public Acceptor(Protocol protocol, ElectionsConfig config, Acceptor.SuggestionGenerator suggestionGenerator)
Copyright © 2024. All rights reserved.