int function ( ) { return connections . size ( ) ; }
returns total number of connections in the pool . note that prior to okhttp 2.7 this included only idle connections and http/2 connections . since okhttp 2.7 this includes all connections , both active and inactive . use #idleconnectioncount to count connections not currentlyin use . concode_field_sep Deque<RealConnection> connections concode_elem_sep boolean cleanupRunning concode_elem_sep long keepAliveDurationNs concode_elem_sep RouteDatabase routeDatabase concode_elem_sep Runnable cleanupRunnable concode_elem_sep int maxIdleConnections concode_elem_sep Executor executor concode_field_sep void evictAll concode_elem_sep int pruneAndGetAllocationCount concode_elem_sep int idleConnectionCount concode_elem_sep long cleanup concode_elem_sep RealConnection get concode_elem_sep boolean connectionBecameIdle concode_elem_sep void run concode_elem_sep void put