blob: a234dba6b8e2efdebb27d7170a8b2573a1a214f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.client.core.communication;
import com.yahoo.vespa.http.client.config.Endpoint;
import java.time.Clock;
/**
* @author bratseth
*/
public class DryRunGatewayConnectionFactory implements GatewayConnectionFactory {
private final Endpoint endpoint;
private final Clock clock;
public DryRunGatewayConnectionFactory(Endpoint endpoint, Clock clock) {
this.endpoint = endpoint;
this.clock = clock;
}
@Override
public GatewayConnection newConnection() {
return new DryRunGatewayConnection(endpoint, clock);
}
}
|