Class AggregationConfiguration


  • public class AggregationConfiguration
    extends Object
    Author:
    Alessandro Pieve (ISTI - CNR), Luca Frosini (ISTI - CNR)
    • 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
      • TIME_UNIT

        public static final TimeUnit TIME_UNIT
      • initialDelay

        protected int initialDelay
      • delay

        protected int delay
      • maxRecordsNumber

        protected int maxRecordsNumber
      • maxTimeElapsed

        protected long maxTimeElapsed
    • Constructor Detail

      • AggregationConfiguration

        public AggregationConfiguration​(int initialDelay,
                                        int delay,
                                        int maxRecordsNumber,
                                        long maxTimeElapsed)
    • Method Detail

      • 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()
        Overrides:
        hashCode in class Object