Package org.apache.hadoop.hbase.ipc
Class SimpleRpcServer.Listener.Reader
java.lang.Object
org.apache.hadoop.hbase.ipc.SimpleRpcServer.Listener.Reader
- All Implemented Interfaces:
Runnable
- Enclosing class:
- SimpleRpcServer.Listener
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LinkedBlockingQueue<SimpleServerRpcConnection>
private final Selector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Updating the readSelector while it's being used is not thread-safe, so the connection must be queued.private void
void
run()
-
Field Details
-
pendingConnections
-
readSelector
-
-
Constructor Details
-
Reader
Reader() throws IOException- Throws:
IOException
-
-
Method Details
-
run
-
doRunLoop
-
addConnection
Updating the readSelector while it's being used is not thread-safe, so the connection must be queued. The reader will drain the queue and update its readSelector before performing the next select- Throws:
IOException
-