Package org.apache.hadoop.hbase.ipc
Class SimpleRpcServer.ConnectionManager
java.lang.Object
org.apache.hadoop.hbase.ipc.SimpleRpcServer.ConnectionManager
- Enclosing class:
- SimpleRpcServer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set<SimpleServerRpcConnection>
private final AtomicInteger
private final int
private final int
private final Timer
private final int
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
add
(SimpleServerRpcConnection connection) (package private) boolean
close
(SimpleServerRpcConnection connection) (package private) void
closeAll()
(package private) void
closeIdle
(boolean scanAll) (package private) SimpleServerRpcConnection
register
(SocketChannel channel) private boolean
remove
(SimpleServerRpcConnection connection) private void
(package private) int
size()
(package private) void
(package private) void
(package private) SimpleServerRpcConnection[]
toArray()
-
Field Details
-
count
-
connections
-
idleScanTimer
-
idleScanThreshold
-
idleScanInterval
-
maxIdleTime
-
maxIdleToClose
-
-
Constructor Details
-
ConnectionManager
-
-
Method Details
-
add
-
remove
-
size
int size() -
toArray
-
register
-
close
-
closeIdle
-
closeAll
void closeAll() -
startIdleScan
void startIdleScan() -
stopIdleScan
void stopIdleScan() -
scheduleIdleScanTask
-