Class TimeBucketWheel


  • public class TimeBucketWheel
    extends java.lang.Object
    Created by Shakib Ahmed on 12/1/16.
    • Constructor Detail

      • TimeBucketWheel

        public TimeBucketWheel​(int numberOfBuckets,
                               long mappingRecordValidityInMilis,
                               MappingSystem mappingSystem)
    • Method Detail

      • add

        public int add​(Eid key,
                       MappingData mappingData,
                       long timestamp)
      • refreshMappping

        public int refreshMappping​(Eid key,
                                   MappingData newMappingData,
                                   long timestamp,
                                   int bucketId)
      • removeMapping

        public void removeMapping​(Eid key,
                                  int bucketId)
      • clearExpiredMappingAndRotate

        public void clearExpiredMappingAndRotate()
      • clearExpiredMappingAndRotate

        public void clearExpiredMappingAndRotate​(long currentStamp)