Returns a socket.
(long id)
| 203 | |
| 204 | /** Returns a socket. */ |
| 205 | @Nullable |
| 206 | public InternalInstrumented<SocketStats> getSocket(long id) { |
| 207 | InternalInstrumented<SocketStats> clientSocket = otherSockets.get(id); |
| 208 | if (clientSocket != null) { |
| 209 | return clientSocket; |
| 210 | } |
| 211 | return getServerSocket(id); |
| 212 | } |
| 213 | |
| 214 | private InternalInstrumented<SocketStats> getServerSocket(long id) { |
| 215 | for (ServerSocketMap perServerSockets : perServerSockets.values()) { |
nothing calls this directly
no test coverage detected