public abstract class AbstractJSONPacketDemultiplexer extends AbstractPacketDemultiplexer<org.json.JSONObject> implements PacketDemultiplexer<org.json.JSONObject>
AbstractPacketDemultiplexer.TaskerDEFAULT_THREAD_POOL_SIZE, log| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJSONPacketDemultiplexer() |
protected |
AbstractJSONPacketDemultiplexer(int threadPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Integer |
getPacketType(org.json.JSONObject json) |
protected boolean |
isCongested(NIOHeader header) |
protected boolean |
matchesType(java.lang.Object message) |
protected org.json.JSONObject |
processHeader(byte[] message,
int offset,
NIOHeader header,
boolean cacheStringified) |
protected org.json.JSONObject |
processHeader(byte[] message,
NIOHeader header) |
protected org.json.JSONObject |
processHeader(byte[] message,
NIOHeader header,
boolean cacheStringified) |
static org.json.JSONObject |
processHeaderStatic(byte[] message,
int offset,
NIOHeader header,
boolean cacheStringified) |
emulateDelays, getHandleMessageReport, getThreadPoolSize, handleMessageSuper, isOrderPreserving, loopback, register, register, register, register, register, register, registerOrderPreserving, setNumDemultiplexerThreads, setThreadName, setThreadPoolSize, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleMessageprotected AbstractJSONPacketDemultiplexer(int threadPoolSize)
threadPoolSize - Refer documentation for
setThreadPoolsize(int).protected AbstractJSONPacketDemultiplexer()
protected java.lang.Integer getPacketType(org.json.JSONObject json)
getPacketType in class AbstractPacketDemultiplexer<org.json.JSONObject>protected org.json.JSONObject processHeader(byte[] message,
NIOHeader header)
processHeader in class AbstractPacketDemultiplexer<org.json.JSONObject>protected org.json.JSONObject processHeader(byte[] message,
NIOHeader header,
boolean cacheStringified)
protected org.json.JSONObject processHeader(byte[] message,
int offset,
NIOHeader header,
boolean cacheStringified)
public static final org.json.JSONObject processHeaderStatic(byte[] message,
int offset,
NIOHeader header,
boolean cacheStringified)
message - offset - header - cacheStringified - protected boolean matchesType(java.lang.Object message)
matchesType in class AbstractPacketDemultiplexer<org.json.JSONObject>protected boolean isCongested(NIOHeader header)
isCongested in class AbstractPacketDemultiplexer<org.json.JSONObject>