Class AggregationConfiguration
- java.lang.Object
-
- org.gcube.documentstore.records.aggregation.AggregationConfiguration
-
public class AggregationConfiguration extends Object
- Author:
- Alessandro Pieve (ISTI - CNR), Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_DELAYstatic intDEFAULT_INITIAL_DELAYstatic intDEFAULT_MAX_RECORDS_NUMBERDefine the default MAX number of Record to buffer.static longDEFAULT_MAX_TIME_ELAPSEDDefine the default Max amount of time elapsed from the time the first record where bufferedprotected intdelayprotected intinitialDelayprotected intmaxRecordsNumberprotected longmaxTimeElapsedstatic TimeUnitTIME_UNIT
-
Constructor Summary
Constructors Constructor Description AggregationConfiguration(int initialDelay, int delay, int maxRecordsNumber, long maxTimeElapsed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static AggregationConfigurationgetDefaultConfiguration()intgetDelay()intgetInitialDelay()intgetMaxRecordsNumber()longgetMaxTimeElapsed()inthashCode()voidsetDelay(int delay)voidsetInitialDelay(int initialDelay)voidsetMaxRecordsNumber(int maxRecordsNumber)voidsetMaxTimeElapsed(long maxTimeElapsed)StringtoString()
-
-
-
Field Detail
-
DEFAULT_MAX_RECORDS_NUMBER
public static final int DEFAULT_MAX_RECORDS_NUMBER
Define the default MAX number of Record to buffer.- See Also:
- Constant Field Values
-
DEFAULT_MAX_TIME_ELAPSED
public static final long DEFAULT_MAX_TIME_ELAPSED
Define the default Max amount of time elapsed from the time the first record where buffered- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_DELAY
public static final int DEFAULT_INITIAL_DELAY
- See Also:
- Constant Field Values
-
DEFAULT_DELAY
public static final int DEFAULT_DELAY
- See Also:
- Constant Field Values
-
TIME_UNIT
public static final TimeUnit TIME_UNIT
-
initialDelay
protected int initialDelay
-
delay
protected int delay
-
maxRecordsNumber
protected int maxRecordsNumber
-
maxTimeElapsed
protected long maxTimeElapsed
-
-
Method Detail
-
getDefaultConfiguration
public static AggregationConfiguration getDefaultConfiguration()
-
getInitialDelay
public int getInitialDelay()
-
setInitialDelay
public void setInitialDelay(int initialDelay)
-
getDelay
public int getDelay()
-
setDelay
public void setDelay(int delay)
-
getMaxRecordsNumber
public int getMaxRecordsNumber()
-
setMaxRecordsNumber
public void setMaxRecordsNumber(int maxRecordsNumber)
-
getMaxTimeElapsed
public long getMaxTimeElapsed()
-
setMaxTimeElapsed
public void setMaxTimeElapsed(long maxTimeElapsed)
-
-