Alice52 / project

This repository is muti language and tech integration project.
MIT License
0 stars 0 forks source link

[seckill] optimize email sender by strategy #51

Closed Alice52 closed 4 years ago

Alice52 commented 4 years ago

advice

  1. define method, which accept basic args and message builder

    • message builder is Lambda expression, which is type is Supplier<R> to return message
    • then we can check parameters, send email and handle exception

  2. then refactor the send methods using method defined in step 1