Call the third party interface to intercept repeated callbacks

Scene Description: The call to develop a successful third-party interface calls the callback after this meeting, but I would have been about two seconds callback basic 10

  I have a callback method in business logic so the need to ensure that only need to enter it once callback interception repeated callbacks

  Methods used:

    

That is because it will change the database query the database and therefore within my callback method used to determine

Because the frequency of callbacks slow to go fast so the code can be

 

Lenovo: Multi-threaded locking due to this callback method to solve

Guess you like

Origin www.cnblogs.com/zhougf/p/11423152.html