I have a deposit function which is called by multiple clients at same time. I want the deposit function synchronized when same client (say client with id=someUniqueNo) calls it again but not synchronized when other client else call it ? How can I achieve this.
Using Spring framework in the project , Its cool even if any solution with the framework provides for such pattern.
I have a deposit function which is called by multiple clients at same time.
Share
Second attempt : ( not tested !)
Third attempt ( tested and working correctly )
}