public T lease() {
        T obj = objects.poll();
        return obj != null ? obj : create();
    }
Creates a pool and pre-populates it with a number of objects equal to the size parameter.
@param objects object queue
@param size initial size of the object queue
client-v2/src/main/java/com/clickhouse/client/api/internal/BasicObjectsPool.java