public class FS4ResourcePool
extends com.yahoo.component.AbstractComponent
ListenerPool
. All users will get the same pool instance.Modifier and Type | Field and Description |
---|---|
private Map<String,Backend> |
connectionPoolMap |
private ExecutorService |
executor |
private static AtomicInteger |
instanceCounter |
private int |
instanceId |
private ListenerPool |
listeners |
private static Logger |
logger |
private ScheduledExecutorService |
scheduledExecutor |
private Timer |
timer |
Constructor and Description |
---|
FS4ResourcePool(Fs4Config fs4Config) |
FS4ResourcePool(int listenerThreads) |
Modifier and Type | Method and Description |
---|---|
void |
deconstruct() |
Backend |
getBackend(String host,
int port) |
ExecutorService |
getExecutor() |
ScheduledExecutorService |
getScheduledExecutor() |
private static final Logger logger
private static final AtomicInteger instanceCounter
private final int instanceId
private final ListenerPool listeners
private final Timer timer
private final ExecutorService executor
private final ScheduledExecutorService scheduledExecutor
@Inject public FS4ResourcePool(Fs4Config fs4Config)
public FS4ResourcePool(int listenerThreads)
public ExecutorService getExecutor()
public ScheduledExecutorService getScheduledExecutor()
public void deconstruct()
deconstruct
in class com.yahoo.component.AbstractComponent
Copyright © 2018. All rights reserved.