public void handle ( Data key , String sourceUuid , UUID partitionUuid , long sequence ) { // apply invalidation if it's not originated by local member/client (because local // Near Caches are invalidated immediately there is no need to invalidate them twice) if ( ! localUuid . equals ( sourceUuid ) ) { // sourceUuid is allowed to be `null` if ( key == null ) { nearCache . clear ( ) ; } else { nearCache . invalidate ( serializeKeys ? key : serializationService . toObject ( key ) ) ; } } int partitionId = getPartitionIdOrDefault ( key ) ; checkOrRepairUuid ( partitionId , partitionUuid ) ; checkOrRepairSequence ( partitionId , sequence , false ) ; }
Handles a single invalidation