public class ExchangeClientFactory extends Object implements ExchangeClientSupplier
Constructor and Description |
---|
ExchangeClientFactory(io.airlift.units.DataSize maxBufferedBytes,
io.airlift.units.DataSize maxResponseSize,
int concurrentRequestMultiplier,
io.airlift.units.Duration maxErrorDuration,
boolean acknowledgePages,
boolean asyncPageTransportEnabled,
int pageBufferClientMaxCallbackThreads,
double responseSizeExponentialMovingAverageDecayingAlpha,
com.facebook.airlift.http.client.HttpClient httpClient,
com.facebook.drift.client.DriftClient<ThriftTaskClient> driftClient,
ScheduledExecutorService scheduler) |
ExchangeClientFactory(ExchangeClientConfig config,
com.facebook.airlift.http.client.HttpClient httpClient,
com.facebook.drift.client.DriftClient<ThriftTaskClient> driftClient,
ScheduledExecutorService scheduler) |
Modifier and Type | Method and Description |
---|---|
ExchangeClient |
get(LocalMemoryContext systemMemoryContext) |
com.facebook.airlift.concurrent.ThreadPoolExecutorMBean |
getExecutor() |
void |
stop() |
@Inject public ExchangeClientFactory(ExchangeClientConfig config, com.facebook.airlift.http.client.HttpClient httpClient, com.facebook.drift.client.DriftClient<ThriftTaskClient> driftClient, ScheduledExecutorService scheduler)
public ExchangeClientFactory(io.airlift.units.DataSize maxBufferedBytes, io.airlift.units.DataSize maxResponseSize, int concurrentRequestMultiplier, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, boolean asyncPageTransportEnabled, int pageBufferClientMaxCallbackThreads, double responseSizeExponentialMovingAverageDecayingAlpha, com.facebook.airlift.http.client.HttpClient httpClient, com.facebook.drift.client.DriftClient<ThriftTaskClient> driftClient, ScheduledExecutorService scheduler)
@PreDestroy public void stop()
public com.facebook.airlift.concurrent.ThreadPoolExecutorMBean getExecutor()
public ExchangeClient get(LocalMemoryContext systemMemoryContext)
get
in interface ExchangeClientSupplier
Copyright © 2012–2022. All rights reserved.