1c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath/* 23c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fuller * Copyright (C) 2014 Square, Inc. 3c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * 4c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * Licensed under the Apache License, Version 2.0 (the "License"); 5c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * you may not use this file except in compliance with the License. 6c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * You may obtain a copy of the License at 7c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * 8c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * http://www.apache.org/licenses/LICENSE-2.0 9c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * 10c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * Unless required by applicable law or agreed to in writing, software 11c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * distributed under the License is distributed on an "AS IS" BASIS, 12c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * See the License for the specific language governing permissions and 14c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * limitations under the License. 15c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath */ 163c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fullerpackage com.squareup.okhttp.benchmarks; 17c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath 183c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fullerimport java.net.URL; 19c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath 203c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fuller/** An HTTP client to benchmark. */ 213c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fullerinterface HttpClient { 223c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fuller void prepare(Benchmark benchmark); 233c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fuller void enqueue(URL url) throws Exception; 243c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fuller boolean acceptingJobs(); 25c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath} 26