public abstract class PaxosPacketDemultiplexer extends AbstractPacketDemultiplexer<org.json.JSONObject>
Used to get NIO to send paxos packets to PaxosManager. This class has been merged into PaxosManager now and will be soon deprecated.
AbstractPacketDemultiplexer.Tasker
DEFAULT_THREAD_POOL_SIZE, log
Constructor and Description |
---|
PaxosPacketDemultiplexer() |
Modifier and Type | Method and Description |
---|---|
static void |
throttleExcessiveLoad() |
static PaxosPacket |
toPaxosPacket(org.json.JSONObject json) |
static PaxosPacket |
toPaxosPacket(org.json.JSONObject json,
Stringifiable<?> unstringer) |
emulateDelays, getHandleMessageReport, getPacketType, getThreadPoolSize, handleMessageSuper, isCongested, isOrderPreserving, loopback, matchesType, processHeader, register, register, register, register, register, register, registerOrderPreserving, setNumDemultiplexerThreads, setThreadName, setThreadPoolSize, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleMessage
public static PaxosPacket toPaxosPacket(org.json.JSONObject json, Stringifiable<?> unstringer) throws org.json.JSONException
json
- unstringer
- org.json.JSONException
public static PaxosPacket toPaxosPacket(org.json.JSONObject json) throws org.json.JSONException
json
- json
org.json.JSONException
public static void throttleExcessiveLoad()