Class AggregationConfiguration
java.lang.Object
org.gcube.documentstore.records.aggregation.AggregationConfiguration
- Author:
- Alessandro Pieve (ISTI - CNR), Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intDefine the default MAX number of Record to buffer.static final longDefine the default Max amount of time elapsed from the time the first record where bufferedprotected intprotected intprotected intprotected longstatic final TimeUnit -
Constructor Summary
ConstructorsConstructorDescriptionAggregationConfiguration(int initialDelay, int delay, int maxRecordsNumber, long maxTimeElapsed) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AggregationConfigurationintgetDelay()intintlonginthashCode()voidsetDelay(int delay) voidsetInitialDelay(int initialDelay) voidsetMaxRecordsNumber(int maxRecordsNumber) voidsetMaxTimeElapsed(long maxTimeElapsed) toString()
-
Field Details
-
DEFAULT_MAX_RECORDS_NUMBER
public static final int DEFAULT_MAX_RECORDS_NUMBERDefine the default MAX number of Record to buffer.- See Also:
-
DEFAULT_MAX_TIME_ELAPSED
public static final long DEFAULT_MAX_TIME_ELAPSEDDefine the default Max amount of time elapsed from the time the first record where buffered- See Also:
-
DEFAULT_INITIAL_DELAY
public static final int DEFAULT_INITIAL_DELAY- See Also:
-
DEFAULT_DELAY
public static final int DEFAULT_DELAY- See Also:
-
TIME_UNIT
-
initialDelay
protected int initialDelay -
delay
protected int delay -
maxRecordsNumber
protected int maxRecordsNumber -
maxTimeElapsed
protected long maxTimeElapsed
-
-
Constructor Details
-
AggregationConfiguration
public AggregationConfiguration(int initialDelay, int delay, int maxRecordsNumber, long maxTimeElapsed)
-
-
Method Details
-
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) -
hashCode
public int hashCode() -
equals
-
toString
-