Class TimeBucketMappingTimeoutService

    • Constructor Detail

      • TimeBucketMappingTimeoutService

        public TimeBucketMappingTimeoutService​(int numberOfBucket,
                                               long mappingRecordValidityInMillis,
                                               MappingSystem mappingSystem)
    • Method Detail

      • refreshMapping

        public int refreshMapping​(Eid key,
                                  MappingData newMappingData,
                                  int presentBucketId)
        Description copied from interface: ISouthBoundMappingTimeoutService
        Refresh mapping in southbound manager. Remove old mapping from Time Bucket Wheel and add the mapping in proper time bucket. This is either because mapping re-registration or new merged mapping and refresh mapping request in MS/MR.
        Specified by:
        refreshMapping in interface ISouthBoundMappingTimeoutService
        Parameters:
        key - The key for the mapping
        newMappingData - New Mapping Data for the key
        presentBucketId - The id of the bucket the previous mapping is in
        Returns:
        The new id of the bucket the mapping was added to