Package alluxio.resource
Class DynamicResourcePool.Options
- java.lang.Object
-
- alluxio.resource.DynamicResourcePool.Options
-
- Enclosing class:
- DynamicResourcePool<T>
public static final class DynamicResourcePool.Options extends java.lang.Object
Options to initialize a Dynamic resource pool.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DynamicResourcePool.Options
defaultOptions()
boolean
getFIFO()
java.util.concurrent.ScheduledExecutorService
getGcExecutor()
long
getGcIntervalMs()
long
getInitialDelayMs()
int
getMaxCapacity()
int
getMinCapacity()
DynamicResourcePool.Options
setFIFO(boolean fifo)
DynamicResourcePool.Options
setGcExecutor(java.util.concurrent.ScheduledExecutorService gcExecutor)
DynamicResourcePool.Options
setGcIntervalMs(long gcIntervalMs)
DynamicResourcePool.Options
setInitialDelayMs(long initialDelayMs)
DynamicResourcePool.Options
setMaxCapacity(int maxCapacity)
DynamicResourcePool.Options
setMinCapacity(int minCapacity)
-
-
-
Method Detail
-
getMaxCapacity
public int getMaxCapacity()
- Returns:
- the max capacity
-
getMinCapacity
public int getMinCapacity()
- Returns:
- the min capacity
-
getInitialDelayMs
public long getInitialDelayMs()
- Returns:
- the initial delay
-
getGcIntervalMs
public long getGcIntervalMs()
- Returns:
- the gc interval
-
getGcExecutor
public java.util.concurrent.ScheduledExecutorService getGcExecutor()
- Returns:
- the gc executor
-
getFIFO
public boolean getFIFO()
- Returns:
- if resources are returned in a FIFO manner
-
setFIFO
public DynamicResourcePool.Options setFIFO(boolean fifo)
- Parameters:
fifo
- if resources should be returned in a FIFO manner- Returns:
- the updated object
-
setMaxCapacity
public DynamicResourcePool.Options setMaxCapacity(int maxCapacity)
- Parameters:
maxCapacity
- the max capacity- Returns:
- the updated object
-
setMinCapacity
public DynamicResourcePool.Options setMinCapacity(int minCapacity)
- Parameters:
minCapacity
- the min capacity- Returns:
- the updated object
-
setInitialDelayMs
public DynamicResourcePool.Options setInitialDelayMs(long initialDelayMs)
- Parameters:
initialDelayMs
- the initial delay- Returns:
- the updated object
-
setGcIntervalMs
public DynamicResourcePool.Options setGcIntervalMs(long gcIntervalMs)
- Parameters:
gcIntervalMs
- the gc interval- Returns:
- the updated object
-
setGcExecutor
public DynamicResourcePool.Options setGcExecutor(java.util.concurrent.ScheduledExecutorService gcExecutor)
- Parameters:
gcExecutor
- the gc executor- Returns:
- updated object
-
defaultOptions
public static DynamicResourcePool.Options defaultOptions()
- Returns:
- the default option
-
-